Function at 0x477398
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.004712dc
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x477590
cmp dword [esp + 0x98], 5
jbe 0x4774e8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x477540
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 0x4775d4
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 0x477477
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 0x4775b0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov edi, ebp
sub edi, esi
jmp 0x4774d7
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.00472b50
add esi, dword [esp + 0x24]
add ebp, dword [esp + 0x20]
inc ebx
add edi, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x28]
je 0x4775b0
cmp esi, ebp
jge 0x4774c0
cmp dword [esp + 0x30], ebx
jg 0x477498
mov ecx, dword [esp + 0x38]
jmp 0x47749c
mov eax, dword [esp + 0x98]
jmp dword [eax*4 + 0x600cc8]
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4775e0
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 0x4773fc
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 0x47740b
mov eax, dword [esp + 0x7c]
lea esi, [eax + edi - 1]
jmp 0x477410
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4775e0
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 0x4773fc
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 0x4773fc
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4775f8
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x4773fc
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.00471380
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
sub ebp, edi
jmp 0x47742d
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 0x4773fc
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00476e0c
jmp 0x4773de