Function at 0x40f640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7d0111
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp dword [ebx], ebp
jne 0x40f693
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.0040fc60
mov dword [esp + 0x70], ebp
mov dword [esp + 0x14], 1
jmp 0x40f8ac
lea ecx, [esp + 0x1c]
call fcn.0040f910
mov dword [esp + 0x70], 2
mov edi, dword [esp + 0x84]
cmp edi, ebp
jne 0x40f6b3
lea edi, [esp + 0x1c]
push ebp
mov ecx, edi
call fcn.0040e260
lea esi, [edi + 0x10]
push ebp
mov ecx, esi
call fcn.0040e260
lea ebp, [edi + 0x20]
push 0
mov ecx, ebp
call fcn.0040e260
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x80]
xor ecx, ecx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x48], eax
mov dword [edi + 0x40], 0x64
test byte [ebx + 4], 0x10
je 0x40f70b
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
mov dword [esp + 0x84], ecx
jmp 0x40f718
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], ecx
mov dword [esp + 0x84], eax
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call fcn.0040fd50
mov edx, dword [edi + 0x24]
mov dword [edx], 0
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jl 0x40f75d
lea ebp, [eax + eax]
cmp ebp, 8
jge 0x40f743
mov ebp, 8
mov ecx, dword [esi + 4]
lea eax, [ebp*4]
push eax
push ecx
call fcn.00723dd8
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [eax + edx*4], 0
inc dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
mov ebx, dword [edi + 0x30]
jl 0x40f79f
lea ebp, [eax + eax]
cmp ebp, 8
jge 0x40f785
mov ebp, 8
mov edx, dword [esi + 4]
lea ecx, [ebp*4]
push ecx
push edx
call fcn.00723dd8
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], ebx
inc dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jl 0x40f7da
lea ebp, [eax + eax]
cmp ebp, 8
jge 0x40f7c0
mov ebp, 8
mov eax, dword [esi + 4]
lea edx, [ebp*4]
push edx
push eax
call fcn.00723dd8
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [edx + ecx*4], 0xffffffff
inc dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jl 0x40f819
lea ebp, [eax + eax]
cmp ebp, 8
jge 0x40f7ff
mov ebp, 8
mov ecx, dword [esi + 4]
lea eax, [ebp*4]
push eax
push ecx
call fcn.00723dd8
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [eax + edx*4], 0xffffffff
inc dword [esi + 8]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
test eax, eax
jne 0x40f84c
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.0040fc60
mov byte [esp + 0x70], 2
jmp 0x40f896
mov ebx, dword [esp + 0x84]
cmp dword [edi + 0x30], ebx
je 0x40f87d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test eax, eax
je 0x40f8c4
mov eax, dword [edi + 0x34]
cmp dword [edi + 0x38], eax
jne 0x40f873
cmp eax, dword [edi + 0x30]
je 0x40f8d6
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x38], ecx
cmp ecx, ebx
jne 0x40f858
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x30]
mov dword [edx + 8], eax
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x78]
push ecx
push edi
mov ecx, esi
call fcn.00410180
mov dword [esp + 0x14], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.0040f980
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x10
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.0040fc60
mov byte [esp + 0x70], 2
jmp 0x40f896
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.0040fc60
mov byte [esp + 0x70], 2
jmp 0x40f896