Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 11
Branch analysis from position: 8
filename: /in/Ym9KBm
function name: (null)
number of ops: 58
compiled vars: !0 = $unhashedServerSeed, !1 = $nonce, !2 = $clientSeed, !3 = $ticketQuantity, !4 = $nrand, !5 = $stringToHash, !6 = $result
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
6 0 E > ASSIGN !0, 'JJtIyuRvwSVJS9PyU0KJ3VRN3GQAxI8tDRe0M7g7unaTsIohquMo8FgtCLVwSW4y'
7 1 ASSIGN !1, 40
8 2 ASSIGN !2, 'I2ApzlvbpQJBO88E4wDcTxLVusE6pQKe'
9 3 ASSIGN !3, 1000000
13 4 IS_EQUAL ~11 !0, ''
5 > JMPNZ_EX ~11 ~11, ->8
6 > IS_SMALLER ~12 !1, 0
7 BOOL ~11 ~12
8 > > JMPNZ_EX ~11 ~11, ->11
9 > IS_EQUAL ~13 !2, ''
10 BOOL ~11 ~13
11 > > JMPNZ_EX ~11 ~11, ->14
12 > IS_SMALLER_OR_EQUAL ~14 !3, 0
13 BOOL ~11 ~14
14 > > JMPZ ~11, ->17
14 15 > ECHO 'Fill+in+details'
15 16 > RETURN null
18 17 > INIT_FCALL 'define'
18 SEND_VAL 'MAX_HEX_SEGMENTS'
19 SEND_VAL 6
20 DO_ICALL
19 21 INIT_FCALL 'define'
22 SEND_VAL 'HEX_SEGMENT_SIZE'
23 SEND_VAL 2
24 DO_ICALL
20 25 INIT_FCALL 'define'
26 SEND_VAL 'BASE_FOR_HEX_CONVERSION'
27 SEND_VAL 256
28 DO_ICALL
21 29 INIT_FCALL 'define'
30 SEND_VAL 'HASH_TYPE'
31 SEND_VAL 'sha256'
32 DO_ICALL
44 33 FRAMELESS_ICALL_3 preg_replace ~19 '%2F%0D%7C%0A%2F', ''
34 OP_DATA !0
35 ASSIGN !0, ~19
45 36 FRAMELESS_ICALL_3 preg_replace ~21 '%2F%0D%7C%0A%2F', ''
37 OP_DATA !2
38 ASSIGN !2, ~21
46 39 STRLEN ~23 !2
40 ASSIGN !4, ~23
47 41 ROPE_INIT 5 ~26 !2
42 ROPE_ADD 1 ~26 ~26, '-'
43 ROPE_ADD 2 ~26 ~26, !4
44 ROPE_ADD 3 ~26 ~26, '-'
45 ROPE_END 4 ~25 ~26, !1
46 ASSIGN !5, ~25
49 47 INIT_FCALL 'getprovablyfairresult'
48 SEND_VAR !5
49 SEND_VAR !0
50 SEND_VAR !3
51 DO_FCALL 0 $30
52 ASSIGN !6, $30
51 53 NOP
54 FETCH_DIM_R ~32 !6, 'result'
55 FAST_CONCAT ~33 'Result%3A+', ~32
56 ECHO ~33
57 > RETURN 1
Function calculatedecimalvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
Branch analysis from position: 4
filename: /in/Ym9KBm
function name: calculateDecimalValue
number of ops: 29
compiled vars: !0 = $preResult, !1 = $decimalValue, !2 = $i, !3 = $hexValue
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
23 0 E > RECV !0
25 1 ASSIGN !1, 0
26 2 ASSIGN !2, 0
3 > JMP ->22
27 4 > FETCH_CONSTANT ~6 'HEX_SEGMENT_SIZE'
5 MUL ~7 !2, ~6
6 FETCH_CONSTANT ~8 'HEX_SEGMENT_SIZE'
7 FRAMELESS_ICALL_3 substr ~9 !0, ~7
8 OP_DATA ~8
9 ASSIGN !3, ~9
28 10 INIT_FCALL 'hexdec'
11 SEND_VAR !3
12 DO_ICALL $11
13 INIT_FCALL 'pow'
14 FETCH_CONSTANT ~12 'BASE_FOR_HEX_CONVERSION'
15 SEND_VAL ~12
16 ADD ~13 !2, 1
17 SEND_VAL ~13
18 DO_ICALL $14
19 DIV ~15 $11, $14
20 ASSIGN_OP 1 !1, ~15
26 21 PRE_INC !2
22 > FETCH_CONSTANT ~18 'MAX_HEX_SEGMENTS'
23 IS_SMALLER !2, ~18
24 > JMPNZ ~19, ->4
30 25 > VERIFY_RETURN_TYPE !1
26 > RETURN !1
31 27* VERIFY_RETURN_TYPE
28* > RETURN null
End of function calculatedecimalvalue
Function getprovablyfairresult:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/Ym9KBm
function name: getProvablyFairResult
number of ops: 24
compiled vars: !0 = $init, !1 = $serverSeed, !2 = $qty, !3 = $preResult, !4 = $decimalValue, !5 = $result
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
33 0 E > RECV !0
1 RECV !1
2 RECV !2
35 3 INIT_FCALL 'hash_hmac'
4 FETCH_CONSTANT ~6 'HASH_TYPE'
5 SEND_VAL ~6
6 SEND_VAR !0
7 SEND_VAR !1
8 DO_ICALL $7
9 ASSIGN !3, $7
36 10 INIT_FCALL 'calculatedecimalvalue'
11 SEND_VAR !3
12 DO_FCALL 0 $9
13 ASSIGN !4, $9
37 14 MUL ~11 !4, !2
15 CAST 4 ~12 ~11
16 ADD ~13 ~12, 1
17 ASSIGN !5, ~13
39 18 INIT_ARRAY ~15 !3, 'preResult'
40 19 ADD_ARRAY_ELEMENT ~15 !5, 'result'
20 VERIFY_RETURN_TYPE ~15
21 > RETURN ~15
42 22* VERIFY_RETURN_TYPE
23* > RETURN null
End of function getprovablyfairresult
Generated using Vulcan Logic Dumper, using php 8.5.0