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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
xor edi, edi
mov ebp, dword [esi]
push esi
xor ebx, ebx
mov dword [esp + 0x14], edi
call fcn.0047d410
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp ecx, edi
mov dword [esp + 0x14], eax
jge 0x477c04
mov edx, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov cl, byte [edx + 0x18]
push ecx
push 0x76
push eax
call fcn.0046cd30
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x477ce9
push 0
push 0x84
push ebp
call fcn.0046b9d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x477c8e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x477c83
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
mov edx, dword [esp + 0x44]
movsx edx, word [edx + 0x24]
cmp edx, eax
jne 0x477c53
or eax, 0xffffffff
mov edx, dword [esp + 0x54]
lea eax, [eax + edx + 1]
mov dword [esi + 0x18], eax
mov dl, byte [ecx + 0x15]
mov byte [esi + 1], dl
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x477c70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.004719b0
add esp, 0xc
mov esi, eax
jmp 0x477c8e
mov edx, dword [esp + 0x54]
mov byte [esi + 1], 0x64
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x477c9b
mov eax, dword [eax + edi*4]
jmp 0x477ca2
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + eax*8]
push eax
push 0x1a
push ebp
call fcn.0046b9d0
mov edx, dword [esp + 0x48]
push 0
push eax
push esi
push 0x4c
push edx
call fcn.0046ba10
push eax
push ebx
push ebp
call fcn.0046baf0
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x2c
inc edi
cmp edi, dword [eax + 0x14]
jl 0x477c13
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [edx]
jne 0x477d58
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x477d58
push 0
push 0x84
push ebp
call fcn.0046b9d0
push 0
push 0x98
push ebp
mov edi, eax
call fcn.0046b9d0
add esp, 0x18
test edi, edi
je 0x477d3f
test eax, eax
je 0x477d3f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x18], ecx
mov byte [edi + 1], 0x64
mov ecx, dword [edx + 0x34]
mov word [eax + 0x1c], 0xffff
mov dword [eax + 0x18], ecx
push 0
push eax
push edi
push 0x4b
push esi
call fcn.0046ba10
push eax
push ebx
push ebp
call fcn.0046baf0
add esp, 0x20
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
call fcn.004703f0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
call fcn.00484c50
mov ecx, dword [esp + 0x7c]
add esp, 0x24
test ecx, ecx
mov edi, eax
jle 0x477db4
mov eax, dword [esp + 0x4c]
mov dl, byte [eax + 0x18]
test dl, dl
jne 0x477db4
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x477db0
mov esi, eax
mov byte [esi + 0x18], 1
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
push ecx
xor ecx, ecx
mov cl, byte [edx + 0x18]
push ecx
push 0x75
push esi
call fcn.0046cd30
add esp, 0x10
test edi, edi
je 0x477ddb
push edi
call fcn.0048a440
add esp, 4
push ebx
push ebp
call fcn.004637f0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x477df7
push eax
push esi
call fcn.0046cd50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret