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

Disassembly:
sub esp, 0x98
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x58], ecx
push ebx
mov ebx, edx
mov dword [esp + 8], ebx
push ebp
push esi
push edi
cmp eax, 0x12
je 0x563eef
cmp eax, 0x18
je 0x563bfd
cmp eax, 0x24
jne 0x563ee2
xor edx, edx
mov dword [esp + 0x44], edx
cmp dword [esp + 0xb8], edx
jle 0x563ee2
lea esp, [esp]
mov ebp, dword [esp + 0xac]
mov eax, edx
sar eax, 0x10
movsx edx, word [ebp + 0x20]
mov ecx, dword [ebx + eax*4 + 0x48]
add ecx, dword [ebx + eax*4 + 0x44]
mov dword [esp + 0x80], ecx
movsx ecx, word [ebp + 0x22]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + eax*4 + 0x4c]
add ecx, dword [ebx + eax*4 + 0x40]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx + eax*4 + 0x50]
add ecx, dword [ebx + eax*4 + 0x3c]
mov dword [esp + 0x88], ecx
mov ecx, dword [ebx + eax*4 + 0x54]
add ecx, dword [ebx + eax*4 + 0x38]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebx + eax*4 + 0x58]
add ecx, dword [ebx + eax*4 + 0x34]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x14]
movsx esi, word [ebp + 0x1e]
mov ecx, dword [ecx + eax*4 + 0x5c]
movsx edi, word [ebp + 0x1c]
add ecx, dword [edx + eax*4 + 0x30]
mov dword [esp + 0x94], ecx
mov ecx, edx
movsx ebx, word [ebp + 0x1a]
movsx ebp, word [ebp + 0x18]
mov ecx, dword [ecx + eax*4 + 0x60]
add ecx, dword [edx + eax*4 + 0x2c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0x16]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + eax*4 + 0x64]
add ecx, dword [edx + eax*4 + 0x28]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0x14]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + eax*4 + 0x68]
add ecx, dword [edx + eax*4 + 0x24]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0x12]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + eax*4 + 0x6c]
add ecx, dword [edx + eax*4 + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + eax*4 + 0x70]
add ecx, dword [edx + eax*4 + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0xe]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + eax*4 + 0x74]
add ecx, dword [edx + eax*4 + 0x18]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0xc]
mov dword [esp + 0x60], ecx
mov ecx, dword [edx + eax*4 + 0x78]
add ecx, dword [edx + eax*4 + 0x14]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0xa]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + eax*4 + 0x7c]
add ecx, dword [edx + eax*4 + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + eax*4 + 0x80]
add ecx, dword [edx + eax*4 + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 6]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + eax*4 + 0x84]
add ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + eax*4 + 0x88]
add ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 2]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + eax*4 + 0x8c]
add ecx, dword [edx + eax*4]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x10]
movsx eax, word [eax]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
movzx eax, ax
imul eax, ecx
sar eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
movzx eax, ax
imul eax, dword [esp + 0x7c]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
movzx eax, ax
imul eax, esi
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
movzx eax, ax
imul eax, edi
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
movzx eax, ax
imul eax, ebx
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
movzx eax, ax
imul eax, ebp
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
movzx eax, ax
imul eax, dword [esp + 0x6c]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
movzx eax, ax
imul eax, dword [esp + 0x74]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
movzx eax, ax
imul eax, dword [esp + 0x48]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
movzx eax, ax
imul eax, dword [esp + 0x50]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
movzx eax, ax
imul eax, dword [esp + 0x58]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
movzx eax, ax
imul eax, dword [esp + 0x60]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
movzx eax, ax
imul eax, dword [esp + 0x18]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
imul eax, dword [esp + 0x20]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
movzx eax, ax
imul eax, dword [esp + 0x28]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
imul eax, dword [esp + 0x30]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
movzx eax, ax
imul eax, dword [esp + 0x38]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
movzx eax, ax
imul eax, dword [esp + 0x40]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
sar eax, 0x10
imul eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x84]
sar eax, 0x10
imul eax, dword [esp + 0x7c]
add ecx, eax
mov eax, dword [esp + 0x88]
sar eax, 0x10
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x8c]
sar eax, 0x10
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x90]
sar eax, 0x10
imul eax, ebx
add ecx, eax
mov eax, dword [esp + 0x94]
sar eax, 0x10
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x98]
sar eax, 0x10
imul eax, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x70]
sar eax, 0x10
imul eax, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x78]
sar eax, 0x10
imul eax, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x4c]
sar eax, 0x10
imul eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x54]
sar eax, 0x10
imul eax, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x5c]
sar eax, 0x10
imul eax, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0x64]
sar eax, 0x10
imul eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x1c]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x24]
sar eax, 0x10
imul eax, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x2c]
sar eax, 0x10
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x34]
sar eax, 0x10
imul eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x3c]
sar eax, 0x10
imul eax, dword [esp + 0x40]
add ecx, eax
sar ecx, 5
inc ecx
sar ecx, 1
cmp ecx, 0x7fff
jle 0x563bb6
mov ecx, 0x7fff
jmp 0x563bc4
cmp ecx, 0xffff8000
mov eax, 0xffff8000
cmovl ecx, eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
add edx, dword [esp + 0xbc]
mov ebx, dword [esp + 0x14]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], edx
cmp edx, dword [esp + 0xb8]
jl 0x563750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [esp + 0xb8], eax
jle 0x563ee2
sar eax, 0x10
mov ebp, dword [esp + 0xac]
mov ecx, dword [ebx + eax*4 + 0x30]
add ecx, dword [ebx + eax*4 + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + eax*4 + 0x34]
add ecx, dword [ebx + eax*4 + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + eax*4 + 0x38]
add ecx, dword [ebx + eax*4 + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + eax*4 + 0x3c]
add ecx, dword [ebx + eax*4 + 0x20]
mov dword [esp + 0x38], ecx
movsx edx, word [ebp + 0x16]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x14]
movsx esi, word [ebp + 0x14]
mov ecx, dword [ecx + eax*4 + 0x40]
movsx edi, word [ebp + 0x12]
add ecx, dword [edx + eax*4 + 0x1c]
mov dword [esp + 0x34], ecx
mov ecx, edx
movsx ebx, word [ebp + 0x10]
movsx ebp, word [ebp + 0xe]
mov ecx, dword [ecx + eax*4 + 0x44]
add ecx, dword [edx + eax*4 + 0x18]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + eax*4 + 0x48]
add ecx, dword [edx + eax*4 + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 0xa]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + eax*4 + 0x4c]
add ecx, dword [edx + eax*4 + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + eax*4 + 0x50]
add ecx, dword [edx + eax*4 + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 6]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + eax*4 + 0x54]
add ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + eax*4 + 0x58]
add ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx + 2]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + eax*4 + 0x5c]
add ecx, dword [edx + eax*4]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x40]
movzx ecx, cx
movsx eax, word [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
imul eax, dword [esp + 0x7c]
imul ecx, esi
sar eax, 0x10
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x3c]
movzx ecx, cx
imul ecx, edi
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x38]
movzx ecx, cx
imul ecx, ebx
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x34]
movzx ecx, cx
imul ecx, ebp
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x30]
movzx ecx, cx
imul ecx, dword [esp + 0x2c]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x28]
movzx ecx, cx
imul ecx, dword [esp + 0x24]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x20]
movzx ecx, cx
imul ecx, dword [esp + 0x1c]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
imul ecx, dword [esp + 0x64]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x60]
movzx ecx, cx
imul ecx, dword [esp + 0x5c]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x58]
movzx ecx, cx
imul ecx, dword [esp + 0x54]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x50]
movzx ecx, cx
imul ecx, dword [esp + 0x4c]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x44]
sar ecx, 0x10
imul ecx, dword [esp + 0x7c]
add eax, ecx
mov ecx, dword [esp + 0x40]
sar ecx, 0x10
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x3c]
sar ecx, 0x10
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x38]
sar ecx, 0x10
imul ecx, ebx
add eax, ecx
mov ecx, dword [esp + 0x34]
sar ecx, 0x10
imul ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x30]
sar ecx, 0x10
imul ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x28]
sar ecx, 0x10
imul ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x20]
sar ecx, 0x10
imul ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
sar ecx, 0x10
imul ecx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x60]
sar ecx, 0x10
imul ecx, dword [esp + 0x5c]
add eax, ecx
mov ecx, dword [esp + 0x58]
sar ecx, 0x10
imul ecx, dword [esp + 0x54]
add eax, ecx
mov ecx, dword [esp + 0x50]
sar ecx, 0x10
imul ecx, dword [esp + 0x4c]
add eax, ecx
sar eax, 5
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x563ea9
mov eax, 0x7fff
jmp 0x563eb6
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov ecx, dword [esp + 0x68]
mov ebx, edx
mov word [ecx], ax
add ecx, 2
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0xbc]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0xb8]
jl 0x563c10
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x98
ret
xor ebx, ebx
mov dword [esp + 0x6c], ebx
cmp dword [esp + 0xb8], ebx
jle 0x563ee2
mov ebp, dword [esp + 0xb4]
movsx esi, bp
mov dword [esp + 0xa4], esi
nop
mov ecx, dword [esp + 0x14]
mov eax, ebx
sar eax, 0x10
lea edx, [ecx + eax*4]
movzx ecx, bx
imul ecx, esi
mov esi, dword [esp + 0xac]
sar ecx, 0x10
sub ebp, ecx
dec ebp
lea eax, [ecx + ecx*8]
mov ecx, dword [esp + 0xac]
movsx ebx, word [esi + eax*2 + 0x10]
mov dword [esp + 0x44], ebx
mov ebx, dword [edx + 0x20]
mov dword [esp + 0x90], ebx
movsx ebx, word [esi + eax*2 + 0xe]
mov dword [esp + 0x40], ebx
mov ebx, dword [edx + 0x1c]
mov dword [esp + 0x8c], ebx
movsx ebx, word [esi + eax*2 + 0xc]
mov dword [esp + 0x3c], ebx
mov ebx, dword [edx + 0x18]
mov dword [esp + 0x88], ebx
movsx ebx, word [esi + eax*2 + 0xa]
mov dword [esp + 0x38], ebx
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x84], ebx
movsx ebx, word [esi + eax*2 + 8]
mov dword [esp + 0x34], ebx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x80], ebx
movsx ebx, word [esi + eax*2 + 6]
mov dword [esp + 0x30], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x9c], ebx
movsx ebx, word [esi + eax*2 + 4]
mov dword [esp + 0x2c], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0xa0], ebx
movsx ebx, word [esi + eax*2 + 2]
movsx eax, word [esi + eax*2]
mov dword [esp + 0x1c], eax
lea eax, [ebp*8]
add eax, ebp
mov dword [esp + 0x24], ebx
mov ebp, dword [edx + 0x38]
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0xac]
movsx edi, word [esi + eax*2 + 4]
mov ebx, dword [edx + 4]
mov esi, dword [edx + 0x40]
movsx ebp, word [ebp + eax*2 + 6]
mov dword [esp + 0x70], ebp
mov ebp, dword [edx + 0x34]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0xac]
movsx ecx, word [ecx + eax*2 + 2]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xac]
movsx ebp, word [ebp + eax*2 + 8]
mov dword [esp + 0x54], ebp
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x28], ebx
mov ebx, dword [edx]
mov dword [esp + 0x20], ebx
movsx ebp, word [ebp + eax*2 + 0xa]
mov ebx, dword [edx + 0x3c]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0xac]
movsx ebp, word [ebp + eax*2 + 0xc]
mov dword [esp + 0x94], ebp
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x98], ebp
movsx ebp, word [edi + eax*2 + 0xe]
mov dword [esp + 0x78], ebp
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x48], ebp
mov ebp, edi
movsx ebp, word [ebp + eax*2 + 0x10]
mov dword [esp + 0x4c], ebp
mov ebp, dword [edx + 0x24]
mov dword [esp + 0x50], ebp
mov ebp, dword [edx + 0x44]
mov dword [esp + 0x60], ebp
mov ebp, edi
movsx eax, word [ebp + eax*2]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x20]
movzx eax, ax
imul eax, dword [esp + 0x44]
movzx ebp, si
imul ebp, ecx
sar eax, 0x10
sar ebp, 0x10
add ebp, eax
mov eax, dword [edx + 0x1c]
movzx eax, ax
imul eax, dword [esp + 0x40]
sar eax, 0x10
add ebp, eax
movzx eax, bx
imul eax, dword [esp + 0x7c]
sar eax, 0x10
add ebp, eax
mov eax, dword [edx + 0x18]
movzx eax, ax
imul eax, dword [esp + 0x3c]
sar eax, 0x10
add ebp, eax
mov eax, dword [edx + 0x14]
movzx eax, ax
imul eax, dword [esp + 0x38]
sar eax, 0x10
add ebp, eax
mov eax, dword [edx + 0x10]
movzx eax, ax
imul eax, dword [esp + 0x34]
sar eax, 0x10
add ebp, eax
mov eax, dword [edx + 0xc]
movzx eax, ax
imul eax, dword [esp + 0x30]
sar eax, 0x10
add ebp, eax
mov eax, dword [edx + 8]
movzx eax, ax
imul eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x98]
sar eax, 0x10
add ebp, eax
movzx eax, dx
imul eax, dword [esp + 0x94]
mov dword [esp + 0x10], ebp
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
movzx eax, ax
imul eax, dword [esp + 0x24]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
movzx eax, ax
imul eax, dword [esp + 0x1c]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
imul eax, dword [esp + 0x64]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
movzx eax, ax
imul eax, dword [esp + 0x5c]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
movzx eax, ax
imul eax, dword [esp + 0x54]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
movzx eax, ax
imul eax, dword [esp + 0x4c]
sar esi, 0x10
imul esi, ecx
sar ebx, 0x10
imul ebx, dword [esp + 0x7c]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
movzx eax, ax
imul eax, dword [esp + 0x78]
sar edx, 0x10
imul edx, dword [esp + 0x94]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
movzx eax, ax
imul eax, dword [esp + 0x70]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
sar eax, 0x10
imul eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
add ecx, esi
add ecx, eax
mov eax, dword [esp + 0x8c]
sar eax, 0x10
imul eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x88]
sar eax, 0x10
add ecx, ebx
imul eax, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x84]
sar eax, 0x10
imul eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x80]
sar eax, 0x10
imul eax, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x9c]
sar eax, 0x10
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0xa0]
sar eax, 0x10
imul eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x28]
sar eax, 0x10
add ecx, edx
imul eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x20]
sar eax, 0x10
imul eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x18]
sar eax, 0x10
imul eax, dword [esp + 0x64]
add ecx, eax
mov eax, dword [esp + 0x60]
sar eax, 0x10
imul eax, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x58]
sar eax, 0x10
imul eax, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esp + 0x50]
sar eax, 0x10
imul eax, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x48]
sar eax, 0x10
imul eax, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x74]
sar eax, 0x10
imul eax, dword [esp + 0x70]
add ecx, eax
sar ecx, 5
inc ecx
sar ecx, 1
cmp ecx, 0x7fff
jle 0x5642f0
mov ecx, 0x7fff
jmp 0x5642fe
cmp ecx, 0xffff8000
mov eax, 0xffff8000
cmovl ecx, eax
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xb4]
mov esi, dword [esp + 0xa4]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
cmp ebx, dword [esp + 0xb8]
jl 0x563f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret