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

Disassembly:
sub esp, 0x58
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x20]
xor ebp, ebp
cmp eax, ebp
mov esi, ecx
mov dword [esp + 0xc], esi
jne 0x460b6d
cmp dword [esi + 0x78], ebp
je 0x460b6d
mov eax, dword [edi + 0x1c]
push 0x14
mov dword [esp + 0x1c], eax
mov dword [edi + 0x20], 1
call fcn.0052b380
add esp, 4
cmp eax, ebp
je 0x460992
movzx ecx, word [edi + 0x2e]
push 1
push ecx
mov ecx, eax
call fcn.00439d30
jmp 0x460994
xor eax, eax
push 0x14
mov dword [edi + 0x1c], eax
call fcn.0052b380
add esp, 4
cmp eax, ebp
je 0x4609ba
movzx edx, word [edi + 0x2e]
push 1
push edx
mov ecx, eax
call fcn.00439d30
mov dword [0x563c10], eax
jmp 0x4609c0
mov dword [0x563c10], ebp
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x70]
push ebx
push 0x4608e0
push ebp
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
call fcn.00505340
mov ebx, eax
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x460b6c
mov al, byte [edi + 0x30]
mov ebp, dword [edi + 0x64]
xor ecx, ecx
test al, 8
movzx eax, word [edi + 0x2e]
je 0x460a24
mov ch, byte [ebp + eax*4 + 3]
movzx edx, byte [ebp + eax*4 + 1]
mov cl, byte [ebp + eax*4 + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + eax*4]
shl ecx, 8
or ecx, edx
jmp 0x460a2c
mov ch, byte [ebp + eax*2 + 1]
mov cl, byte [ebp + eax*2]
test eax, eax
mov dword [esp + 0x6c], 0
jle 0x460b11
mov ebx, dword [esp + 0x74]
jmp 0x460a46
mov ecx, dword [esp + 0x48]
test byte [edi + 0x30], 4
je 0x460a5b
lea eax, [ecx + ebp]
add ecx, 2
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
jmp 0x460a5c
inc ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x540fd4
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x3c], bx
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
call fcn.0045f910
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x460ae3
cmp dword [esi + 0x1c], 1
jbe 0x460ae3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push esi
push ecx
push eax
call fcn.005055a0
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
je 0x460ae3
push 0xc
call fcn.0052b380
mov ecx, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x28]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x2c]
add esp, 4
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 0x1c]
push eax
push edx
call fcn.0043a110
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x540fd4
call fcn.0045eff0
mov eax, dword [esp + 0x6c]
movzx ecx, word [edi + 0x2e]
mov esi, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x6c], eax
jl 0x460a42
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x460b32
mov edx, dword [edi + 0x1c]
push edx
push 0x476420
mov ecx, ebp
call fcn.00439dc0
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.00504e30
mov ecx, dword [0x563c10]
add esp, 8
push ecx
push 0x45ef40
call fcn.00439dc0
mov ecx, dword [0x563c10]
test ecx, ecx
je 0x460b60
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0x563c10], 0
xor ebp, ebp
pop ebx
mov ecx, dword [edi + 0x1c]
cmp ecx, ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
je 0x460bb0
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
call fcn.00439e90
test eax, eax
je 0x460bb0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x460bb9
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 8]
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebp
add esp, 0x58
ret 0xc
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0xc