Function at 0x477b00
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.0047d350
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp ecx, edi
mov dword [esp + 0x14], eax
jge 0x477b44
mov edx, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov cl, byte [edx + 0x18]
push ecx
push 0x76
push eax
call fcn.0046cc70
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x477c29
push 0
push 0x84
push ebp
call fcn.0046b910
mov esi, eax
add esp, 0xc
test esi, esi
je 0x477bce
mov eax, dword [esp + 0x48]
test eax, eax
je 0x477bc3
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 0x477b93
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 0x477bb0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.004718f0
add esp, 0xc
mov esi, eax
jmp 0x477bce
mov edx, dword [esp + 0x54]
mov byte [esi + 1], 0x64
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x477bdb
mov eax, dword [eax + edi*4]
jmp 0x477be2
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.0046b910
mov edx, dword [esp + 0x48]
push 0
push eax
push esi
push 0x4c
push edx
call fcn.0046b950
push eax
push ebx
push ebp
call fcn.0046ba30
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x2c
inc edi
cmp edi, dword [eax + 0x14]
jl 0x477b53
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [edx]
jne 0x477c98
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x477c98
push 0
push 0x84
push ebp
call fcn.0046b910
push 0
push 0x98
push ebp
mov edi, eax
call fcn.0046b910
add esp, 0x18
test edi, edi
je 0x477c7f
test eax, eax
je 0x477c7f
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.0046b950
push eax
push ebx
push ebp
call fcn.0046ba30
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.00470330
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
call fcn.00484b90
mov ecx, dword [esp + 0x7c]
add esp, 0x24
test ecx, ecx
mov edi, eax
jle 0x477cf4
mov eax, dword [esp + 0x4c]
mov dl, byte [eax + 0x18]
test dl, dl
jne 0x477cf4
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x477cf0
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.0046cc70
add esp, 0x10
test edi, edi
je 0x477d1b
push edi
call fcn.0048a380
add esp, 4
push ebx
push ebp
call fcn.00463730
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x477d37
push eax
push esi
call fcn.0046cc90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret