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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x476c3f
sub esp, 0x6c
call fcn.0045a410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
jle 0x4769dd
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 0x476a13
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 + 0x28]
mov ebp, edx
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x476c35
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 0x476a9a
mov esi, dword [esp + 0x34]
jmp 0x476b48
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 0x4769f6
jmp 0x476c12
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 0x476a4f
mov dword [esp + 0x3c], esi
sub esi, ebx
sar esi, 1
lea ebp, [esi + ebx]
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
jbe 0x476c2c
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.00475fc0
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.004026e0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x476b08
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
jmp 0x476a74
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
lea edx, [ebx + edx + 1]
mov eax, dword [esp + 0x3c]
jmp 0x476a74
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 0x476a68
jae 0x476c23
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.00475fc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
cmp dword [esp + 8], ecx
jne 0x476a5c
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.004027e0
movzx eax, byte [esp + 0xc]
test al, al
je 0x476a58
mov edx, dword [esp + 0x24]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
jb 0x476bb0
mov eax, dword [esp + 0x5c]
jmp 0x476be7
lea eax, [0x50db20]
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.00446d70
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 [0x605b20]
lea edi, [eax + edx*4]
test esi, esi
jne 0x476c00
mov esi, dword [esp + 0x64]
mov dword [eax + edx*4], esi
jmp 0x476b1d
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0045d600
mov eax, ecx
jmp 0x476b1d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
jmp 0x4769e3
mov eax, ebx
mov ecx, esi
call fcn.0045d680
mov eax, ebp
mov ecx, ebx
call fcn.0045d680
mov eax, ebp
mov ecx, ebx
call fcn.0045d680
nop
call fcn.0045c1c0
jmp fcn.00476990