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

Disassembly:
sub esp, 0x744
lea eax, [esp + 0x83]
push ebx
and al, 0xc0
push ebp
mov ebp, dword [esp + 0x750]
mov dword [esp + 0x2c], eax
push esi
lea eax, [esp + 0x40f]
push edi
mov edi, dword [ebp + 0x44]
and al, 0xc0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xa4]
mov edx, dword [edi + 0x10]
add eax, 0x38
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xa0]
add eax, 0x38
mov ebx, dword [ebp + 4]
mov dword [esp + 0x44], eax
mov eax, ecx
imul eax, edx
mov esi, dword [ebp + 0x3c]
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x250]
mov dword [esp + 0x48], ebx
test ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
jle 0x465897
inc eax
push eax
push ebx
push edi
push esi
call fcn.004677b0
add esp, 0x10
mov ecx, dword [ebp + 0x14]
mov eax, ecx
imul eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, ecx
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x50]
cmp edx, ebp
jl 0x4658c4
mov edx, ebp
cmp ecx, edx
jge 0x465c16
cdq
idiv ebp
mov dword [esp + 0x20], 1
imul eax, ebp
mov ebp, dword [esp + 0x2c]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov edx, dword [esp + 0x28]
imul eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x758]
cmp ecx, dword [eax + 0x18]
je 0x465900
mov dword [esp + 0x20], edx
cmp ecx, dword [eax + 0x14]
jne 0x465910
test ecx, ecx
jle 0x465910
mov edx, 1
jmp 0x465912
xor edx, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
cmp edx, eax
jge 0x465be9
mov eax, dword [edi + 0x10]
imul eax, ecx
add eax, edx
lea ebp, [eax + eax*2]
lea ebp, [ebp + ebp*4]
lea eax, [eax + ebp*4]
mov ebp, dword [ebx + 0x44]
lea ebp, [ebp + eax*8]
cmp dword [ebp + 0xec], 0x10
jne 0x465987
test byte [edi + 0x18], 1
je 0x465bd8
mov eax, dword [esp + 0x758]
mov eax, dword [eax + 8]
push eax
mov eax, dword [edi + 8]
push 0
push 0
push eax
push 0
push 0
lea eax, [ebx + 0x38]
push 0
push eax
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push 0
push eax
push ecx
push edx
push ebp
call fcn.0046e2e0
add esp, 0x40
jmp 0x465bd0
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x38]
jle 0x465ac0
test edx, edx
jle 0x465ac0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
and ecx, 7
mov eax, 8
sub eax, ecx
mov ecx, 0x20
sub ecx, dword [esi + 0xc]
mov edx, dword [eax*4 + 0x481f14]
sub ecx, eax
mov dword [esp + 0x4c], edx
cmp ecx, 0x20
ja 0x4659f8
shl edx, cl
mov ecx, dword [esi + 8]
or ecx, edx
mov edx, dword [esi + 0xc]
add edx, eax
mov dword [esi + 8], ecx
mov eax, edx
mov dword [esi + 0xc], edx
cmp eax, 0x20
jb 0x465aa2
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
jmp 0x465a80
mov ecx, dword [esi + 0xc]
lea ecx, [ecx + eax - 0x20]
shr edx, cl
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
or ecx, edx
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esi + 8], ecx
add dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x20
jb 0x465a4e
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x4c]
mov ecx, 0x20
sub ecx, edx
shl eax, cl
mov ecx, dword [esi + 8]
or ecx, eax
mov dword [esi + 8], ecx
mov eax, ecx
mov ecx, dword [esi + 0xc]
add ecx, edx
cmp ecx, 0x20
mov dword [esi + 0xc], ecx
jb 0x465aa2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, edx
push ecx
push ebx
push edi
push esi
call fcn.004677b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xf0], eax
mov eax, dword [ebp + 0x178]
test eax, eax
jne 0x465add
test byte [edi + 0x18], 1
je 0x465b5f
mov eax, dword [esp + 0x758]
mov eax, dword [eax + 8]
push eax
mov eax, dword [esp + 0x38]
push eax
lea eax, [edi + 0xe4]
push eax
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0xc0]
push eax
mov eax, dword [esp + 0x58]
push eax
lea eax, [edi + 0x140]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [edi + 0x128]
push eax
mov eax, dword [esp + 0x54]
push eax
lea eax, [ebx + 0x38]
push eax
push ecx
push edx
push ebp
push edi
call fcn.0046ed20
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
push ebp
push ebx
push edi
call fcn.0045a860
mov ebx, dword [esp + 0xa0]
add esp, 0x58
and eax, 0xff
mov dword [ebp + 0x178], eax
cmp dword [ebp + 0xec], 5
jne 0x465b72
mov dword [ebp + 0xec], 0
mov eax, dword [ebp + 0xec]
test eax, eax
jne 0x465ba0
mov edx, dword [ebp + 0x120]
mov ecx, dword [ebp + 0x11c]
mov eax, dword [ebp + 0x178]
or edx, ecx
or edx, eax
jne 0x465ba0
mov dword [ebp + 0xec], 4
jmp 0x465bad
test byte [ebx + 0xc], 0x40
je 0x465bad
and dword [ebp + 0x178], 0x3c
mov eax, dword [esp + 0x758]
mov edx, dword [ebx + 0x24]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push esi
push edx
push eax
push ecx
push ebp
push ebx
call fcn.0045e9d0
add esp, 0x1c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc edx
cmp edx, eax
mov dword [esp + 0x18], edx
jl 0x465922
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x758]
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
inc ecx
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
jmp 0x4658b0
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0xc]
and ecx, 7
mov eax, 8
mov ebx, 0x20
sub eax, ecx
mov ecx, ebx
mov edx, dword [eax*4 + 0x481f14]
sub ecx, edi
sub ecx, eax
cmp ecx, ebx
ja 0x465c6d
mov edi, dword [esi + 8]
shl edx, cl
or edi, edx
mov edx, dword [esi + 0xc]
add edx, eax
mov dword [esi + 8], edi
mov eax, edx
mov ecx, edi
cmp eax, ebx
mov dword [esi + 0xc], edx
jb 0x465d10
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
jmp 0x465cee
mov ecx, dword [esi + 0xc]
mov ebp, edx
lea edi, [ecx + eax - 0x20]
mov ecx, edi
sub eax, edi
shr ebp, cl
mov ecx, dword [esi + 8]
or ecx, ebp
mov ebp, dword [esi + 0xc]
add ebp, eax
mov dword [esi + 8], ecx
mov eax, ebp
mov dword [esi + 0xc], ebp
cmp eax, ebx
jb 0x465cc2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov ebp, dword [esi + 8]
mov ecx, ebx
sub ecx, edi
shl edx, cl
or ebp, edx
mov edx, dword [esi + 0xc]
add edx, edi
mov dword [esi + 8], ebp
mov ecx, edx
mov eax, ebp
cmp ecx, ebx
mov dword [esi + 0xc], edx
jb 0x465d10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
bswap eax
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add ecx, 4
add eax, 0xffffffe0
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x744
jmp dword [0x4fe6c8]