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

Disassembly:
push 0xffffffffffffffff
push 0x4c0d7a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4df210]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
cmp dword [0x56b3dc], esi
je 0x40f3b6
call fcn.00462f90
cmp dword [0x56b404], esi
je 0x40f3c3
call fcn.00462f90
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x1c], esi
call fcn.00416210
mov dword [esp + 0x80], esi
mov eax, dword [0x4e9b0c]
mov edi, dword [eax + 4]
mov esi, dword [edi]
mov ebp, eax
mov dword [esp + 0x38], eax
jmp 0x40f3f0
cmp ebp, dword [esp + 0x38]
jne 0x40f6ed
cmp esi, edi
sete al
test al, al
sete al
test al, al
je 0x40f441
cmp esi, dword [ebp + 4]
je 0x40f43c
mov ecx, dword [esi + 8]
mov dx, word [ecx]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ebx, [esp + 0x5c]
mov word [esp + 0x30], dx
mov dword [esp + 0x34], 0xffffffff
call fcn.00416330
cmp esi, dword [ebp + 4]
je 0x40f43c
mov esi, dword [esi]
jmp 0x40f3f0
jmp fcn.00421220
mov eax, dword [0x4e9b0c]
mov esi, dword [eax + 4]
mov ecx, dword [esi]
mov edx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
lea ecx, [ecx]
cmp edx, dword [esp + 0x40]
jne 0x40f6ed
cmp ecx, esi
sete al
test al, al
sete al
test al, al
je 0x40f6c3
cmp ecx, dword [edx + 4]
je 0x40f43c
mov eax, dword [ecx + 8]
cmp eax, dword [0x4e9af0]
mov dword [esp + 0x14], eax
je 0x40f69a
call fcn.0041b440
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov byte [esp + 0x80], 1
mov eax, dword [0x4e9af0]
movzx ecx, word [eax]
lea edx, [esp + 0x48]
push edx
push ecx
call fcn.0040f0f0
mov ecx, dword [esp + 0x54]
mov ebp, dword [ecx]
add esp, 8
mov ebx, ecx
jmp 0x40f4d0
cmp ebp, ebx
sete al
test al, al
sete al
test al, al
je 0x40f575
cmp ebp, ecx
je 0x40f6b4
mov esi, dword [ebp + 8]
mov edi, dword [0x4e9af0]
call fcn.00410000
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x40f511
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
je 0x40f6b4
mov ebp, dword [ebp]
jmp 0x40f4d0
mov dx, word [ecx]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x64]
push ecx
mov word [esp + 0x38], dx
mov dword [esp + 0x3c], esi
call fcn.004146d0
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x4c]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x50], edi
je 0x40f566
mov esi, dword [eax]
push eax
call fcn.0048d056
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40f551
push ecx
call fcn.0048d056
mov dword [esp + 0x50], edi
jmp 0x40f68f
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov esi, ecx
lea esp, [esp]
xor ebx, ebx
cmp edx, ebx
je 0x40f6be
lea ecx, [esp + 0x54]
cmp edx, ecx
jne 0x40f6be
cmp eax, esi
sete cl
test cl, cl
sete cl
test cl, cl
je 0x40f5d7
cmp eax, dword [edx + 4]
je 0x40f6b9
lea edx, [esp + 0x28]
mov dword [eax + 0x10], 0xffffffff
call fcn.00421ee0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
jmp 0x40f590
mov edi, dword [0x4e9af0]
lea ecx, [esp + 0x54]
call fcn.00416280
mov ecx, dword [esp + 0x14]
mov dword [eax], 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x4e9af0]
mov dword [esp + 0x20], ebx
movzx edx, word [ecx]
push ebx
push edx
push eax
call fcn.0040f1e0
add esp, 0x14
cmp eax, ebx
je 0x40f648
push eax
call fcn.00410080
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40f629
call fcn.00462f90
mov ecx, dword [esp + 0x14]
mov dx, word [ecx]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x40], dx
mov dword [esp + 0x44], esi
call fcn.004146d0
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x50], ebx
je 0x40f685
jmp 0x40f670
mov esi, dword [eax]
push eax
call fcn.0048d056
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40f670
push ecx
call fcn.0048d056
mov dword [esp + 0x50], ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
cmp ecx, dword [edx + 4]
je 0x40f43c
mov eax, dword [ecx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov ecx, eax
jmp 0x40f460
jmp fcn.00421510
jmp fcn.00421d80
jmp fcn.00421df0
mov dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x54]
call fcn.0041bdc0
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
jmp fcn.00421290