Function at 0x40ea10
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4819e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x49b1b0]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x3fc]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [esp + 0x40c]
lea esi, [esp + 0x68]
mov dword [esp + 0x404], ebx
call fcn.00415f30
mov byte [esp + 0x404], 1
mov eax, dword [esp + 0x6c]
mov esi, 0x10
cmp dword [esp + 0x80], esi
jae 0x40ea82
lea eax, [esp + 0x6c]
push eax
push 0x49eb30
call fcn.004125e0
test al, al
jne 0x40eadb
cmp dword [esp + 0x80], esi
jb 0x40eaa7
mov eax, dword [esp + 0x6c]
push eax
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x424], 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x40ead4
mov ecx, dword [esp + 0x410]
push ecx
call fcn.00469d48
add esp, 4
xor al, al
jmp 0x40f934
call fcn.0040fc00
mov esi, str.HOMEPAGE
mov eax, 0x49eb30
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40ec75
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40eb24
mov esi, str.HOMEPAGE
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40eb00
jmp 0x40ec75
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov ebp, eax
cmp ebp, ebx
je 0x40ec75
mov esi, str.NAME
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40ebd5
jmp 0x40eb50
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40eb71
mov esi, str.NAME
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40eb50
jmp 0x40ebd5
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x40ebd5
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40eb98
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
je 0x40eb98
mov eax, dword [eax + 0x20]
add eax, 8
jmp 0x40eb9a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
mov eax, 0x49c950
mov byte [esp + 0x410], 2
call fcn.00401c40
mov byte [esp + 0x404], 1
cmp dword [esp + 0x48], 8
jb 0x40ebd5
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00469d48
add esp, 4
mov esi, 0x485fcc
mov eax, ebp
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40ec75
jmp 0x40ebf0
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40ec11
mov esi, 0x485fcc
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40ebf0
jmp 0x40ec75
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x40ec75
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40ec38
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
je 0x40ec38
mov eax, dword [eax + 0x20]
add eax, 8
jmp 0x40ec3a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
mov eax, 0x49c96c
mov byte [esp + 0x410], 3
call fcn.00401c40
mov byte [esp + 0x404], 1
cmp dword [esp + 0x48], 8
jb 0x40ec75
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00469d48
add esp, 4
mov esi, str.ADVERT
mov eax, 0x49eb30
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40f69c
mov edi, edi
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40ecb4
mov esi, str.ADVERT
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40ec90
jmp 0x40f69c
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x40f69c
mov esi, 0x485fd8
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40f69c
lea ecx, [ecx]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40ed04
mov esi, 0x485fd8
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40ece0
jmp 0x40f69c
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x40f69c
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40ed33
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
je 0x40ed33
mov eax, dword [eax + 0x20]
mov ebp, 8
add eax, ebp
jmp 0x40ed38
xor eax, eax
lea ebp, [eax + 8]
lea ecx, [esp + 0x30]
call fcn.00415ef0
cmp dword [eax + 0x18], ebp
jb 0x40ed4b
mov eax, dword [eax + 4]
jmp 0x40ed4e
add eax, 4
push eax
call fcn.00469b30
add esp, 4
cmp dword [esp + 0x48], ebp
mov edi, eax
mov dword [esp + 0x28], edi
jb 0x40ed70
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00469d48
add esp, 4
mov esi, 1
cmp edi, esi
mov dword [esp + 0x24], esi
jl 0x40f69c
mov edx, dword [0x49e52c]
mov eax, dword [edx + 0xc]
mov ecx, 0x49e52c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
push str.POSITION_d
lea edi, [esp + 0x28]
mov byte [esp + 0x40c], 4
call fcn.00410540
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add esp, 8
mov ecx, esi
call fcn.00411f70
cmp eax, ebx
jne 0x40edd5
mov byte [esp + 0x404], 1
lea eax, [esi - 0x10]
jmp 0x40f66e
mov esi, str.FILE
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40ee08
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40ef0e
mov esi, str.FILE
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40ede5
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40f65f
jmp 0x40ee20
mov eax, 7
mov dword [esp + 0x154], eax
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], bx
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], bx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x188], ebx
mov word [esp + 0x178], bx
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], bx
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], bx
mov dword [esp + 0x1e0], eax
mov dword [esp + 0x1dc], ebx
mov word [esp + 0x1cc], bx
mov eax, dword [esp + 0x18]
mov esi, str.NAME
mov byte [esp + 0x404], 5
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40ef84
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40ef20
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40ef84
jmp 0x40eef0
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, str.NAME
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40ef1c
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40eef0
jmp 0x40ef84
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x40ee0a
mov esi, eax
jmp 0x40eed0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40ef84
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40ef46
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40ef46
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40ef48
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x148]
mov byte [esp + 0x410], 6
call fcn.00401c40
mov byte [esp + 0x404], 5
cmp dword [esp + 0x48], ebp
jb 0x40ef84
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, str.INTRO
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40f046
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40efe2
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40f046
jmp 0x40efc0
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, str.INTRO
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40efde
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40efc0
jmp 0x40f046
mov esi, eax
jmp 0x40efa0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40f046
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f008
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f008
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40f00a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x164]
mov byte [esp + 0x410], 7
call fcn.00401c40
mov byte [esp + 0x404], 5
cmp dword [esp + 0x48], ebp
jb 0x40f046
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, 0x485238
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40f106
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40f0a2
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40f106
jmp 0x40f080
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, 0x485238
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40f09e
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40f080
jmp 0x40f106
mov esi, eax
jmp 0x40f060
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40f106
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f0c8
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f0c8
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40f0ca
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x180]
mov byte [esp + 0x410], 8
call fcn.00401c40
mov byte [esp + 0x404], 5
cmp dword [esp + 0x48], ebp
jb 0x40f106
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, 0x485244
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40f1c6
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40f162
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40f1c6
jmp 0x40f140
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, 0x485244
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40f15e
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40f140
jmp 0x40f1c6
mov esi, eax
jmp 0x40f120
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40f1c6
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f188
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f188
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40f18a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x19c]
mov byte [esp + 0x410], 9
call fcn.00401c40
mov byte [esp + 0x404], 5
cmp dword [esp + 0x48], ebp
jb 0x40f1c6
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, str.FILENAME
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40f286
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40f222
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40f286
jmp 0x40f200
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, str.FILENAME
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40f21e
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40f200
jmp 0x40f286
mov esi, eax
jmp 0x40f1e0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40f286
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f248
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f248
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40f24a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x1b8]
mov byte [esp + 0x410], 0xa
call fcn.00401c40
mov byte [esp + 0x404], 5
cmp dword [esp + 0x48], ebp
jb 0x40f286
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, str.ICON
call fcn.00411ed0
mov esi, eax
cmp esi, ebx
je 0x40f5d3
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x40f2e5
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40f5d3
jmp 0x40f2c0
mov esi, dword [eax + 0x20]
add esi, ebp
mov edi, str.ICON
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40f2e1
mov eax, dword [eax + 0x28]
cmp eax, ebx
jne 0x40f2c0
jmp 0x40f5d3
mov esi, eax
jmp 0x40f2a0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
cmp eax, ebx
je 0x40f5d3
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f30f
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f30f
mov eax, dword [eax + 0x20]
add eax, ebp
jmp 0x40f311
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
cmp dword [esp + 0x44], ebx
je 0x40f5c0
push ebx
push ebx
push 1
mov esi, 7
push ebx
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], bx
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], bx
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x130], 1
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ebx
mov byte [esp + 0x134], bl
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xc0], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x90]
mov byte [esp + 0x410], 0xd
call fcn.00401c40
push 0x208
lea ecx, [esp + 0x1ea]
push ebx
push ecx
mov byte [esp + 0xcc], bl
mov word [esp + 0x1f0], bx
call fcn.0046ce70
add esp, 0xc
push 0x104
lea edx, [esp + 0x1e8]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x1e4]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f440
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1e8]
push eax
lea esi, [esp + 0x54]
call fcn.00401df0
push ebp
push str.gamesfx
mov ecx, esi
mov byte [esp + 0x40c], 0xe
call fcn.00404b40
mov ecx, esi
push ecx
call fcn.0041d6b0
add esp, 4
test al, al
jne 0x40f490
mov edx, esi
push edx
call fcn.0041df80
add esp, 4
mov byte [esp + 0xc4], bl
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], bx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edi, [esp + 0xcc]
mov byte [esp + 0x40c], 0xf
call fcn.00415700
push ebx
lea ecx, [esp + 0x88]
lea esi, [esp + 0xe8]
mov byte [esp + 0xc8], bl
mov dword [esp + 0xc0], 0xbb8
call fcn.00404d00
test al, al
je 0x40f513
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x1d4]
call fcn.00401c40
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x408], 0xe
call fcn.00415680
cmp dword [esp + 0x64], ebp
jb 0x40f53b
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00469d48
add esp, 4
cmp dword [esp + 0xb8], ebp
mov esi, 7
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x40f566
mov edx, dword [esp + 0xa4]
push edx
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x9c], ebp
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
jb 0x40f595
mov eax, dword [esp + 0x88]
push eax
call fcn.00469d48
add esp, 4
lea ecx, [esp + 0xe4]
push ecx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov byte [esp + 0x408], 0xb
call fcn.00404c60
cmp dword [esp + 0x48], ebp
jb 0x40f5d3
mov edx, dword [esp + 0x34]
push edx
call fcn.00469d48
add esp, 4
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x40c], 0x10
call fcn.0040dea0
test al, al
je 0x40f633
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40f608
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x13c]
mov byte [esp + 0x404], 4
call fcn.00409800
mov eax, dword [esp + 0x18]
call fcn.00411fb0
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40ee20
jmp 0x40f65f
lea edx, [esp + 0x13c]
push edx
call fcn.0040fca0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40f653
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x13c]
call fcn.00409800
mov byte [esp + 0x404], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f687
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
add esi, 1
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x24], esi
jle 0x40ed81
mov esi, str.RAND
mov eax, 0x49eb30
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40f8ee
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40f6d9
mov esi, str.RAND
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40f6b5
jmp 0x40f8ee
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov ebp, eax
cmp ebp, ebx
je 0x40f8ee
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
mov esi, str.VALUE
mov byte [esp + 0x404], 0x11
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40f7a5
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40f741
mov esi, str.VALUE
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40f720
jmp 0x40f7a5
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x40f7a5
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f768
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
je 0x40f768
mov eax, dword [eax + 0x20]
add eax, 8
jmp 0x40f76a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
mov eax, 0x49c9a8
mov byte [esp + 0x410], 0x12
call fcn.00401c40
mov byte [esp + 0x404], 0x11
cmp dword [esp + 0x48], 8
jb 0x40f7a5
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00469d48
add esp, 4
mov esi, str.FILENAME
mov eax, ebp
call fcn.00411ed0
mov edi, eax
cmp edi, ebx
je 0x40f85c
jmp 0x40f7c0
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x40f7e1
mov esi, str.FILENAME
mov eax, edi
call fcn.00411f20
mov edi, eax
cmp edi, ebx
jne 0x40f7c0
jmp 0x40f85c
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp eax, ebx
je 0x40f85c
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f808
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp eax, ebx
je 0x40f808
mov eax, dword [eax + 0x20]
add eax, 8
jmp 0x40f80a
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x410], 0x13
call fcn.00401c40
mov byte [esp + 0x404], 0x11
cmp dword [esp + 0x48], 8
jb 0x40f844
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x60], ebx
je 0x40f85c
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
push edx
mov eax, 0x49c9c4
call fcn.00401c40
mov ecx, 0x485244
mov eax, ebp
call fcn.00411f70
cmp eax, ebx
je 0x40f8da
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x40f886
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
cmp eax, ebx
je 0x40f886
mov eax, dword [eax + 0x20]
add eax, 8
jmp 0x40f888
xor eax, eax
lea ecx, [esp + 0x30]
call fcn.00415ef0
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x410], 0x14
call fcn.00401c40
mov byte [esp + 0x404], 0x11
cmp dword [esp + 0x48], 8
jb 0x40f8c2
mov eax, dword [esp + 0x34]
push eax
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x60], ebx
je 0x40f8da
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
push ecx
mov eax, 0x49c9e0
call fcn.00401c40
cmp dword [esp + 0x64], 8
jb 0x40f8ee
mov edx, dword [esp + 0x50]
push edx
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x80], 0x10
jb 0x40f905
mov eax, dword [esp + 0x6c]
push eax
call fcn.00469d48
add esp, 4
cmp dword [esp + 0x424], 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x40f932
mov ecx, dword [esp + 0x410]
push ecx
call fcn.00469d48
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00469ab5
add esp, 0x3f4
ret