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

Disassembly:
sub esp, 0x240
mov eax, dword [0x7664f8]
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 0x4785cf
mov ecx, dword [esi + 0x88]
call fcn.004ab9f0
mov ecx, dword [esi + 0x6c]
mov ebx, eax
mov eax, dword [esp + 0x254]
cmp ecx, eax
ja 0x4785e1
mov eax, ecx
shl eax, 9
cdq
idiv ecx
cmp eax, 0x200
jge 0x4785f6
test eax, eax
jg 0x4785fb
xor eax, eax
jmp 0x4785fb
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 0x47862f
test eax, eax
jg 0x478636
xor ecx, ecx
jmp 0x478638
mov ecx, 0x100
jmp 0x478638
mov ecx, eax
mov word [edx], cx
inc eax
add edx, 2
sub edi, 1
jne 0x478620
mov ecx, dword [esi + 0x70]
call fcn.0052e4b0
mov ecx, dword [esi + 0x7c]
mov ebp, eax
mov dword [esp + 0x3c], ebp
call fcn.0052e4b0
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.005590d0
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x44], eax
call fcn.005590d0
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x20], eax
call fcn.0052e4a0
mov ecx, dword [esi + 0x7c]
mov edi, eax
call fcn.0052e4a0
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.004b4470
mov ecx, dword [esi + 0xa4]
mov ebx, eax
mov dword [esp + 0x34], eax
call fcn.004b4470
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x10], eax
call fcn.0052e4c0
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.0052e4c0
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.0052e4c0
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 [0x7cebe4]
call fcn.004ef650
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x478849
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 0x478820
mov edi, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], eax
jmp 0x478770
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 0x478770
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 0x478745
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055c6a2
add esp, 0x240
ret 4