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

Disassembly:
lea eax, [esp + 0x40]
lea esi, [esp + 0xb4]
call fcn.00401b50
mov dword [esp + 0xe0], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x70]
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], eax
call dword [0x539604]
mov esi, eax
push esi
call dword [0x53960c]
or al, 0x96
push ebx
invalid
test eax, eax
je 0x460275
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x18]
push eax
push ecx
push 0x135
push esi
call dword [0x5395fc]
mov esi, eax
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x460272
cmp eax, esi
je 0x460272
push eax
call dword [0x539134]
mov dword [ebx + 0x74], esi
mov eax, dword [ebx + 0x70]
mov esi, dword [esp + 0xb4]
push eax
push esi
call dword [0x5390fc]
cmp eax, 0xffffffff
mov dword [esp + 0x50], eax
je 0x4602b4
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 2
push 0
push 0
push esi
call dword [0x5390f8]
mov ecx, dword [esp + 0x50]
push ecx
push esi
call dword [0x5390fc]
mov edx, dword [edi]
push 0
push 0
push 0x129
push edx
call dword [0x5395fc]
mov edx, dword [edi]
xor ecx, ecx
test eax, eax
setle cl
push 0xfffffffffffffff0
push edx
sub ecx, 1
and ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
call dword [0x53964c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
mov dl, al
shr ecx, 4
shr eax, 2
and dl, 1
and cl, 1
and al, 1
cmp byte [ebx + 0x50], 0
mov byte [esp + 0x17], dl
mov byte [esp + 0x33], cl
mov byte [esp + 0x32], al
mov dword [esp + 0x18], 0
je 0x460553
cmp dword [ebx + 0x58], 0
je 0x460553
mov edi, dword [ebx + 0x58]
test edi, edi
je 0x460553
test al, al
mov dword [esp + 0x18], edi
mov edi, dword [ebx + 0x78]
mov dword [esp + 0x10], edi
je 0x460350
mov dword [ebx + 0x78], 4
jmp 0x46036b
test dl, dl
je 0x46035d
mov dword [ebx + 0x78], 3
jmp 0x46036b
xor eax, eax
cmp byte [ebx + 0x5c], al
setne al
add eax, 1
mov dword [ebx + 0x78], eax
mov edi, dword [ebx + 0x78]
cmp edi, 3
setne dl
cmp edi, 2
setne al
and dl, al
and dl, cl
and dl, 1
je 0x46038a
mov dword [ebx + 0x78], 5
cmp dword [esp + 0x10], 0
jge 0x460398
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x10], ecx
cmp byte [ebx + 0x5d], 0
je 0x4604f8
mov edx, dword [esp + 0x10]
cmp dword [ebx + 0x78], edx
je 0x4604f8
push 4
call fcn.004cea55
add esp, 4
test eax, eax
je 0x4603cb
mov esi, eax
mov dword [eax], 0
mov dword [esp + 0x34], esi
jmp 0x4603d7
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
push 0
push 0x20
push 1
push eax
push ecx
call dword [0x5390d8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov byte [esp + 0xe0], 1
mov eax, dword [eax + 0x18]
push eax
call dword [0x539124]
mov edi, eax
mov eax, dword [esi]
push eax
push edi
mov dword [esp + 0x34], edi
call dword [0x539140]
mov eax, dword [ebx + 0x70]
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x30]
call fcn.0041c1a0
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x44]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x44]
push ecx
push esi
push 1
push edi
mov edi, dword [esp + 0x2c]
push edi
call eax
push esi
push edi
lea edx, [esp + 0x34]
push edx
push ebx
lea edi, [esp + 0x64]
lea ecx, [esp + 0x50]
call fcn.0045c8e0
mov eax, dword [esp + 0x34]
lea edi, [ebx + 0x68]
call fcn.0045cdf0
mov eax, dword [ebx + 0x78]
add eax, 0xffffffff
cmp eax, 4
ja 0x4604c4
jmp dword [eax*4 + 0x45c4d4]
mov dword [ebx + 0x7c], 4
mov eax, 0xfa
cdq
idiv dword [ebx + 0x7c]
mov byte [esp + 0xe0], 0
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4604f1
push eax
call dword [0x53913c]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x44]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x44]
push edx
push ecx
push 1
push esi
push edi
call eax
mov edx, dword [ebx + 0x78]
push edx
push edi
lea eax, [esp + 0xbc]
push eax
test al, al
mov edi, 0x10
je 0x460563
mov edi, 0x110
jmp 0x46056c
test dl, dl
je 0x46056c
mov edi, 0x210
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
and al, 0x58
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
movzx eax, cl
push edi
push eax
push ebx
lea edi, [esp + 0x70]
lea eax, [esp + 0xd0]
call fcn.0045c810
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
je 0x4605d8
push 1
push 1
lea edx, [esp + 0x24]
push edx
call dword [0x5395a0]
sub dword [esp + 0x20], 1