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

Disassembly:
sub esp, 0x240
mov eax, dword [0x7d9a88]
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 0x48273f
mov ecx, dword [esi + 0x88]
call fcn.005e2040
mov ecx, dword [esi + 0x6c]
mov ebx, eax
mov eax, dword [esp + 0x254]
cmp ecx, eax
ja 0x482751
mov eax, ecx
shl eax, 9
cdq
idiv ecx
cmp eax, 0x200
jge 0x482766
test eax, eax
jg 0x48276b
xor eax, eax
jmp 0x48276b
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 0x48279f
test eax, eax
jg 0x4827a6
xor ecx, ecx
jmp 0x4827a8
mov ecx, 0x100
jmp 0x4827a8
mov ecx, eax
mov word [edx], cx
inc eax
add edx, 2
sub edi, 1
jne 0x482790
mov ecx, dword [esi + 0x70]
call fcn.0053e680
mov ecx, dword [esi + 0x7c]
mov ebp, eax
mov dword [esp + 0x3c], ebp
call fcn.0053e680
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.0052a210
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x44], eax
call fcn.0052a210
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x20], eax
call fcn.0053e670
mov ecx, dword [esi + 0x7c]
mov edi, eax
call fcn.0053e670
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.005673b0
mov ecx, dword [esi + 0xa4]
mov ebx, eax
mov dword [esp + 0x34], eax
call fcn.005673b0
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x10], eax
call fcn.0053e690
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.0053e690
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.0053e690
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 [0x841c1c]
call fcn.004fb9f0
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x4829b9
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 0x482990
mov edi, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], eax
jmp 0x4828e0
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 0x4828e0
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 0x4828b5
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae766
add esp, 0x240
ret 4