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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x47783f
sub esp, 0x6c
call fcn.0045a790
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
je 0x4775dd
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], edx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x5c], ebp
xor ebp, ebp
jmp 0x477613
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x6c
ret
add eax, 0xc
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x24]
mov ebp, edx
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x477835
mov dword [esp + 0x30], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x60], edi
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
jmp 0x47769a
mov esi, dword [esp + 0x34]
jmp 0x477748
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
lea edx, [ebp + 1]
cmp ecx, edx
jg 0x4775f6
jmp 0x477812
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov esi, eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
cmp esi, ebx
jle 0x47764f
mov dword [esp + 0x3c], esi
sub esi, ebx
sar esi, 1
lea ebp, [esi + ebx]
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
jbe 0x47782c
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov eax, dword [edi + ebp*4]
nop
add eax, edx
mov dword [esp], eax
call fcn.004761f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
call fcn.00402270
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x477708
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
jmp 0x477674
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
lea edx, [ebx + edx + 1]
mov eax, dword [esp + 0x3c]
jmp 0x477674
mov ecx, dword [esp + 0x38]
inc ecx
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x30]
mov ebx, ecx
mov ecx, dword [esp + 0x2c]
cmp ebx, esi
jge 0x477668
jae 0x477823
mov dword [esp + 0x38], ebx
mov eax, dword [edi + ebx*4]
nop
add eax, edx
mov dword [esp + 0x64], eax
mov dword [esp], eax
call fcn.004761f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
cmp dword [esp + 8], ecx
jne 0x47765c
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.00402360
movzx eax, byte [esp + 0xc]
test al, al
je 0x477658
mov edx, dword [esp + 0x24]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
jb 0x4777b0
mov eax, dword [esp + 0x5c]
jmp 0x4777e7
lea eax, [0x59f400]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004472c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov ebp, edx
mov edx, dword [esp + 0x24]
mov esi, dword [0x705d20]
lea edi, [eax + edx*4]
test esi, esi
jne 0x477800
mov esi, dword [esp + 0x64]
mov dword [eax + edx*4], esi
jmp 0x47771d
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0045d700
mov eax, ecx
jmp 0x47771d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
jmp 0x4775e3
mov eax, ebx
mov ecx, esi
call fcn.0045d780
mov eax, ebp
mov ecx, ebx
call fcn.0045d780
mov eax, ebp
mov ecx, ebx
call fcn.0045d780
nop
call fcn.0045c2f0
jmp fcn.00477590