Function at 0x477080
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.00470fc4
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x477278
cmp dword [esp + 0x98], 5
jbe 0x4771d0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x477228
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 0x4772bc
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 0x47715f
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 0x477298
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov edi, ebp
sub edi, esi
jmp 0x4771bf
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.00472838
add esi, dword [esp + 0x24]
add ebp, dword [esp + 0x20]
inc ebx
add edi, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x28]
je 0x477298
cmp esi, ebp
jge 0x4771a8
cmp dword [esp + 0x30], ebx
jg 0x477180
mov ecx, dword [esp + 0x38]
jmp 0x477184
mov eax, dword [esp + 0x98]
jmp dword [eax*4 + 0x5feae8]
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4772c8
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 0x4770e4
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 0x4770f3
mov eax, dword [esp + 0x7c]
lea esi, [eax + edi - 1]
jmp 0x4770f8
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4772c8
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 0x4770e4
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 0x4770e4
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4772e0
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x4770e4
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.00471068
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
sub ebp, edi
jmp 0x477115
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 0x4770e4
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00476af4
jmp 0x4770c6