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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x478601
sub esp, 0x68
call fcn.00456840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
jle 0x4785dd
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 0x478586
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 0x47845d
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 0x4785ee
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.004741e0
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.00402560
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x478448
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
jmp 0x4783a4
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x38]
jmp 0x4783a4
mov esi, dword [esp + 0x30]
jmp 0x47848e
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 0x478552
jae 0x4785e5
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.004741e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 8], ecx
jne 0x478552
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00402660
movzx eax, byte [esp + 0xc]
test al, al
je 0x478552
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
ja 0x47851b
mov eax, dword [esp + 0x54]
mov esi, dword [0x5c3830]
lea edi, [eax + edx*4]
test esi, esi
jne 0x478509
mov esi, dword [esp + 0x50]
mov dword [eax + edx*4], esi
jmp 0x478463
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.00459860
mov eax, ecx
jmp 0x478463
lea eax, [0x4ecbc0]
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.00442220
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 0x4784f0
mov edx, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jle 0x4785c1
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 0x4785f7
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 0x4783c8
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 0x4785cd
mov eax, ebx
mov ecx, esi
call fcn.004598e0
mov eax, esi
mov ecx, ebx
call fcn.004598e0
mov eax, ebp
mov ecx, ebx
call fcn.004598e0
nop
call fcn.00458300
jmp fcn.00478350