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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor ebx, ebx
cmp dword [edi + 0x3c], ebx
je 0x477f20
cmp dword [edi], ebx
je 0x477f20
cmp dword [edi + 4], ebx
jne 0x477eaf
mov esi, edi
call fcn.00477da0
cmp dword [edi + 4], ebx
je 0x477f20
mov esi, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call fcn.004b3116
cmp eax, ebx
je 0x477eca
mov dword [esi + 8], eax
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call fcn.004b311c
cmp eax, ebx
je 0x477ee5
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [edi]
lea edx, [esp + 0x38]
push edx
push 0x26200a
push 2
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.004b3104
cmp eax, ebx
je 0x477f2c
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov esi, dword [edi + 4]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x50]
push edx
push 0x26200a
push 1
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004b3104
cmp eax, ebx
jne 0x477f1d
mov edx, dword [esp + 0x10]
push edx
push ebp
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [0x4c34e0]
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x40]
test ecx, ecx
jle 0x477f92
mov edx, dword [edi + 0x4c]
sub edx, dword [edi + 0x44]
test edx, edx
jle 0x477f92
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
mov esi, dword [edi + 0x4c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jmp 0x477f9e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
jae 0x478020
cmp edx, eax
mov ebx, edx
jae 0x47800f
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov ch, byte [edi + ebp]
push edx
movzx edx, byte [edi + ebp + 2]
push eax
mov cl, byte [edi + ebp + 1]
shl ecx, 8
or ecx, edx
call fcn.004801f0
mov ecx, eax
shr ecx, 0x10
mov byte [edi + esi], cl
mov byte [edi + esi + 1], ah
mov byte [edi + esi + 2], al
mov eax, dword [esp + 0x2c]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jb 0x477fb6
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jb 0x477fb0
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004b317c
test eax, eax
jne 0x477f1d
mov edi, dword [edi + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.004b317c
test eax, eax
je 0x47805c
mov dword [edi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret 0x10