Function at 0x40f520
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x462ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
mov ecx, 0x48577c
mov dword [esp + 0x34], 0
call fcn.00408380
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040f8f0
push eax
mov ecx, 0x485780
mov byte [esp + 0x34], 1
call fcn.00408380
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f59f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46e7d4
push 0x46e4e8
push 0x48577c
call fcn.0040fec0
push 0x46e7d4
push 0x46e4e8
push 0x485780
call fcn.0040fec0
lea ecx, [esi + 0xbc]
push 0x485780
call fcn.00408380
mov edx, dword [0x48577c]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x40f602
push edi
mov ecx, 0x48577c
call fcn.00408270
mov edx, dword [0x48577c]
lea ecx, [edi + 1]
push ecx
push edx
call fcn.00434659
add esp, 8
test edi, edi
jl 0x40f8e1
mov eax, dword [0x48577c]
cmp edi, dword [eax - 8]
jg 0x40f8e1
mov dword [eax - 0xc], edi
mov edx, dword [0x48577c]
mov word [edx + edi*2], 0
mov eax, dword [0x48577c]
cmp dword [eax - 0xc], 0
jl 0x40f661
push 0x46e4ec
push eax
call fcn.004343a3
add esp, 8
test eax, eax
je 0x40f661
sub eax, dword [0x48577c]
sar eax, 1
cmp eax, ebp
jne 0x40f8a7
cmp dword [esi + 0x80], 0
jne 0x40f8a7
cmp dword [esp + 0x3c], 0
mov ecx, dword [0x485780]
je 0x40f6a5
cmp dword [ecx - 0xc], 0
jl 0x40f6a5
push str.Error
push ecx
call fcn.004343a3
mov ecx, dword [0x485780]
add esp, 8
test eax, eax
je 0x40f6a5
sub eax, ecx
sar eax, 1
cmp eax, ebp
jne 0x40f8a7
test ecx, ecx
je 0x40f6d2
mov eax, dword [0x48577c]
cmp dword [eax - 0xc], 0
jl 0x40f6d2
push ecx
push eax
call fcn.004343a3
add esp, 8
test eax, eax
je 0x40f6d2
sub eax, dword [0x48577c]
sar eax, 1
cmp eax, ebp
jne 0x40f8a7
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040f8f0
mov edi, eax
lea edx, [esp + 0x38]
push edx
lea eax, [esi + 0xa4]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x3c], 2
call fcn.00407740
push 0x46e22c
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x48], 3
call fcn.00407800
lea ecx, [esi + 0xa8]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x54], 4
call fcn.00407740
push edi
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x60], 5
call fcn.00407740
push 0x46e4a4
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x6c], 6
call fcn.00407800
lea edx, [esi + 0xac]
push edx
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x78], 7
call fcn.00407740
add esp, 0x48
mov byte [esp + 0x30], 8
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
push 0x34
push ecx
push eax
mov ecx, esi
call fcn.0041f061
cmp eax, 6
mov byte [esp + 0x30], 7
mov eax, dword [esp + 0xc]
sete byte [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f83b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f85f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40f881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
call fcn.004035e0
cmp byte [esp + 0x3c], 0
jne 0x40f8c8
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x28
ret 8
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40f8c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x28
ret 8
push 0x80070057
call fcn.00408a00
int3