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

Disassembly:
jmp 0x567570
sub esp, 0x98
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x94], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x1a], 0
mov ecx, dword [esp + 0xac]
mov word [esp + 0x1e], ax
push esi
push edi
cmp ecx, 4
jb 0x5675b0
movzx eax, word [edx + 2]
add ecx, 0xfffffffc
mov word [esp + 0x20], ax
push ecx
lea eax, [edx + 4]
push eax
lea ecx, [esp + 0x34]
call fcn.00407784
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
call fcn.0040e55c
mov esi, dword [esp + 0x10]
test esi, esi
je 0x567635
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], 0
cmp eax, ecx
je 0x567602
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], 0x937f60
test edi, edi
je 0x567687
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x567687
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x567687
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x567687
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.00407f3b
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x567676
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
call fcn.00404bc9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x5676a9
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 0
call fcn.004079e6
test esi, esi
je 0x5676b2
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.0040fe9d
add esp, 8
xor eax, eax
jmp 0x56779e
lea ecx, [esp + 0x2c]
call fcn.004079e6
mov eax, dword [esp + 0x22]
mov ecx, ebp
cmp eax, 0x1000
jae 0x5676ce
push dword [esp + 0x26]
push eax
call fcn.00411e3c
jmp 0x56779e
push eax
call fcn.0040e4e9
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + eax*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x154]
sub eax, 0xb
je 0x567721
sub eax, 1
jne 0x5676a2
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
sub ebx, dword [ebp + 8]
push eax
push edi
lea eax, [esp + 0x18]
sar ebx, 2
push eax
push dword [ebp]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ebx
push eax
call fcn.004056e6
mov edi, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x2c]
jmp 0x567752
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
sub ebx, dword [ebp + 8]
push eax
push edi
lea eax, [esp + 0x20]
sar ebx, 2
push eax
push dword [ebp]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], ebx
push eax
call fcn.0040d4b3
mov edi, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x30]
add esp, 0x14
test ecx, ecx
je 0x56775f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
cmp eax, dword [ebp + 0x10]
je 0x567776
mov dword [eax], edi
add dword [ebp + 0xc], 4
jmp 0x567792
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.004106a9
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x567792
mov edx, dword [ecx]
push 1
call dword [edx]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x2cc]
mov eax, ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x98
ret 0xc