Function at 0x476276
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
push edi
mov edi, dword [esi + 0x4c0]
test edi, edi
jne 0x476291
mov ecx, dword [esi + 0x8c]
call fcn.004aba20
mov edi, eax
mov ecx, dword [esi + 0x4c8]
mov eax, dword [esi + 0x4c4]
mov ebp, dword [esp + 0x254]
lea edx, [esi + 0xc0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], eax
xor ecx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
cmp ebp, edx
jae 0x4762cb
xor edx, edx
mov word [esp + ecx*2 + 0x4c], dx
jmp 0x4762f1
mov ebx, dword [esi + 0x70]
lea eax, [edx + ebx]
cmp ebp, eax
jbe 0x4762e1
mov edx, 0x100
mov word [esp + ecx*2 + 0x4c], dx
jmp 0x4762f1
mov eax, ebp
sub eax, edx
shl eax, 8
xor edx, edx
div ebx
mov word [esp + ecx*2 + 0x4c], ax
add dword [esp + 0x10], 4
inc ecx
cmp ecx, 0x100
jb 0x4762b8
mov ecx, dword [esi + 0x74]
call fcn.0052eef0
mov ecx, dword [esi + 0x80]
mov ebx, eax
mov dword [esp + 0x38], ebx
call fcn.0052eef0
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x3c], ebp
call fcn.0051a980
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x44], eax
call fcn.0051a980
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x24], eax
call fcn.0052eee0
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x18], eax
call fcn.0052eee0
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.004b45f0
mov ecx, dword [esi + 0xa8]
mov edi, eax
mov dword [esp + 0x2c], eax
call fcn.004b45f0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x10], eax
call fcn.0052ef00
mov edx, dword [esi + 0x7c]
add edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0xa0]
imul edx, ebx
add edx, dword [esp + 0x18]
imul eax, ecx
mov ecx, dword [esi + 0x80]
add edx, eax
mov dword [esp + 0x18], edx
call fcn.0052ef00
mov edx, dword [esi + 0x88]
add edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x84]
add ecx, dword [esi + 0xa0]
imul edx, ebp
add edx, dword [esp + 0x14]
imul eax, ecx
mov ecx, dword [esi + 0x74]
add edx, eax
mov dword [esp + 0x14], edx
call fcn.0052ef00
imul eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
imul ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
test eax, eax
jbe 0x476503
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, edi
mov dword [esp + 0x28], esi
test eax, eax
jbe 0x4764e0
mov ebx, dword [esp + 0x10]
sub ebx, edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], eax
jmp 0x476430
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 + 0x20], ebp
movzx ebp, byte [ecx]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
add eax, ebp
and eax, 0xff00
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 1]
imul eax, ebx
movzx ebx, byte [ecx + 1]
imul ebx, dword [esp + 0x34]
inc edx
inc ecx
add eax, ebx
and eax, 0xff00
shl eax, 8
or eax, dword [esp + 0x20]
and edi, 0xff00
shl eax, 8
shr esi, 8
or eax, edi
mov edi, dword [esp + 0x40]
or eax, esi
mov esi, dword [esp + 0x28]
mov dword [edi + esi], eax
add esi, 4
inc ecx
inc edx
sub dword [esp + 0x30], 1
mov dword [esp + 0x28], esi
jne 0x476430
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x18], ebx
add dword [esp + 0x14], ebp
add dword [esp + 0x10], ecx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x2c], edi
jne 0x476400
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055d4e2
add esp, 0x240
ret 4