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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.004719f8
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x477cac
cmp dword [esp + 0x98], 5
jbe 0x477c04
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x477c5c
mov esi, dword [esp + 0x7c]
inc esi
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x477cf0
lea ebp, [eax - 1]
cmp dword [esp + 0x8c], 1
sbb eax, eax
or eax, 1
mov dword [esp + 0x24], eax
cmp dword [esp + 0x90], 1
sbb eax, eax
and eax, 2
dec eax
mov dword [esp + 0x20], eax
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
add edx, ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x94]
test edx, edx
je 0x477b93
mov edx, edi
and edx, 1
cmp edx, 1
sbb dword [esp + 0x30], 0xffffffff
add edi, ebx
mov dword [esp + 0x28], edi
cmp ebx, edi
jge 0x477ccc
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov edi, ebp
sub edi, esi
jmp 0x477bf3
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0047326c
add esi, dword [esp + 0x24]
add ebp, dword [esp + 0x20]
inc ebx
add edi, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x28]
je 0x477ccc
cmp esi, ebp
jge 0x477bdc
cmp dword [esp + 0x30], ebx
jg 0x477bb4
mov ecx, dword [esp + 0x38]
jmp 0x477bb8
mov eax, dword [esp + 0x98]
jmp dword [eax*4 + 0x6103a8]
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x477cfc
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
jmp 0x477b18
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x8c]
test esi, esi
jne 0x477b27
mov eax, dword [esp + 0x7c]
lea esi, [eax + edi - 1]
jmp 0x477b2c
mov eax, dword [esp + 0x94]
test eax, eax
je 0x477cfc
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x477b18
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
jmp 0x477b18
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x477d14
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x477b18
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00471a9c
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
sub ebp, edi
jmp 0x477b49
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x477b18
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00477528
jmp 0x477afa