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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x480a31
sub esp, 0x68
call fcn.0045a840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
jle 0x480a0d
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], edx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
jmp 0x4809b6
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov esi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
cmp ebx, esi
jge 0x48088d
mov dword [esp + 0x38], esi
sub esi, ebx
mov dword [esp + 0x40], esi
shr esi, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, esi
sar ebp, 1
lea esi, [ebp + ebx]
mov ebx, dword [esp + 0x30]
cmp esi, ebx
jae 0x480a1e
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov eax, dword [edi + esi*4]
nop
add eax, edx
mov dword [esp], eax
call fcn.0047c400
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.00402790
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x480878
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
jmp 0x4807d4
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x38]
jmp 0x4807d4
mov esi, dword [esp + 0x30]
jmp 0x4808be
mov ecx, dword [esp + 0x34]
inc ecx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
mov ecx, dword [esp + 0x28]
cmp ebx, esi
jge 0x480982
jae 0x480a15
mov dword [esp + 0x34], ebx
mov eax, dword [edi + ebx*4]
nop
add eax, edx
mov dword [esp + 0x50], eax
mov dword [esp], eax
call fcn.0047c400
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 8], ecx
jne 0x480982
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x480982
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
ja 0x48094b
mov eax, dword [esp + 0x54]
mov esi, dword [0x770e60]
lea edi, [eax + edx*4]
test esi, esi
jne 0x480939
mov esi, dword [esp + 0x50]
mov dword [eax + edx*4], esi
jmp 0x480893
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045df70
mov eax, ecx
jmp 0x480893
lea eax, [0x5e6d80]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x20]
jmp 0x480920
mov edx, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jle 0x4809f1
mov eax, dword [esp + 0x60]
add eax, 0xc
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, edx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x480a27
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], edi
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
jmp 0x4807f8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4809fd
mov eax, ebx
mov ecx, esi
call fcn.0045dff0
mov eax, esi
mov ecx, ebx
call fcn.0045dff0
mov eax, ebp
mov ecx, ebx
call fcn.0045dff0
nop
call fcn.0045ca10
jmp fcn.00480780