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

Disassembly:
sub esp, 0x240
mov eax, dword [0x767500]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xbc]
push edi
test eax, eax
jne 0x47888f
mov ecx, dword [esi + 0x88]
call fcn.004aba20
mov ecx, dword [esi + 0x6c]
mov ebx, eax
mov eax, dword [esp + 0x254]
cmp ecx, eax
ja 0x4788a1
mov eax, ecx
shl eax, 9
cdq
idiv ecx
cmp eax, 0x200
jge 0x4788b6
test eax, eax
jg 0x4788bb
xor eax, eax
jmp 0x4788bb
mov eax, 0x200
mov edx, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc0]
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
add eax, 0xffffff00
lea edx, [esp + 0x4c]
mov edi, 0x100
lea ecx, [ecx]
cmp eax, 0x100
jge 0x4788ef
test eax, eax
jg 0x4788f6
xor ecx, ecx
jmp 0x4788f8
mov ecx, 0x100
jmp 0x4788f8
mov ecx, eax
mov word [edx], cx
inc eax
add edx, 2
sub edi, 1
jne 0x4788e0
mov ecx, dword [esi + 0x70]
call fcn.0052eef0
mov ecx, dword [esi + 0x7c]
mov ebp, eax
mov dword [esp + 0x3c], ebp
call fcn.0052eef0
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.0051a980
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x44], eax
call fcn.0051a980
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x20], eax
call fcn.0052eee0
mov ecx, dword [esi + 0x7c]
mov edi, eax
call fcn.0052eee0
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.004b45f0
mov ecx, dword [esi + 0xa4]
mov ebx, eax
mov dword [esp + 0x34], eax
call fcn.004b45f0
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x10], eax
call fcn.0052ef00
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x78]
add ecx, dword [esi + 0x9c]
add edx, dword [esi + 0xa0]
imul eax, ecx
mov ecx, dword [esi + 0x7c]
imul edx, ebp
add eax, edx
add edi, eax
mov dword [esp + 0x24], edi
call fcn.0052ef00
mov edx, dword [esi + 0x84]
add edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 0x9c]
imul edx, dword [esp + 0x28]
add edx, dword [esp + 0x14]
imul eax, ecx
mov ecx, dword [esi + 0x70]
add edx, eax
mov dword [esp + 0x14], edx
call fcn.0052ef00
imul eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0xa0]
imul ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x10]
push 0
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [0x7cfbe4]
call fcn.004f02b0
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x478b09
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov esi, ebx
mov ecx, edi
mov dword [esp + 0x30], esi
test eax, eax
jbe 0x478ae0
mov edi, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], eax
jmp 0x478a30
movzx eax, byte [esi]
movzx ebx, word [esp + eax*2 + 0x4c]
movzx esi, byte [edx]
movzx edi, byte [ecx]
imul esi, ebx
movzx ebp, byte [ecx + 1]
mov eax, 0x100
sub eax, ebx
imul edi, eax
imul ebp, eax
add esi, edi
movzx edi, byte [edx + 1]
inc ecx
imul edi, ebx
inc edx
add edi, ebp
movzx ebp, byte [edx + 1]
inc edx
imul ebp, ebx
inc ecx
mov dword [esp + 0x1c], ebp
movzx ebp, byte [ecx]
imul ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
add eax, ebp
and eax, 0xff00
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 1]
imul eax, ebx
movzx ebx, byte [ecx + 1]
imul ebx, dword [esp + 0x38]
inc edx
inc ecx
add eax, ebx
and eax, 0xff00
shl eax, 8
or eax, dword [esp + 0x1c]
and edi, 0xff00
shl eax, 8
shr esi, 8
or eax, edi
mov edi, dword [esp + 0x48]
or eax, esi
mov esi, dword [esp + 0x30]
mov dword [edi + esi], eax
add esi, 4
inc ecx
inc edx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
jne 0x478a30
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
add dword [esp + 0x14], ecx
add dword [esp + 0x10], edx
add edi, ebp
sub dword [esp + 0x18], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ebx
jne 0x478a05
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055d4e2
add esp, 0x240
ret 4