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

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
mov dword [esp + 0x58], ecx
push ebx
push ebp
mov ebp, edx
mov dword [esp + 0x5c], ebp
push esi
push edi
cmp eax, 0x12
je 0x54ede9
cmp eax, 0x18
je 0x54eb17
cmp eax, 0x24
jne 0x54eddc
xor edx, edx
mov dword [esp + 0x44], edx
cmp dword [esp + 0xb0], edx
jle 0x54eddc
lea esp, [esp]
mov esi, dword [esp + 0xa4]
mov eax, edx
sar eax, 0x10
movsx ebx, word [esi + 4]
lea edx, [eax*4]
mov eax, dword [edx + ebp + 0x48]
add eax, dword [edx + ebp + 0x44]
add edx, ebp
mov dword [esp + 0x8c], eax
movsx eax, word [esi + 0x22]
mov dword [esp + 0x90], eax
mov eax, dword [edx + 0x4c]
add eax, dword [edx + 0x40]
mov dword [esp + 0x94], eax
movsx eax, word [esi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x50]
add eax, dword [edx + 0x3c]
mov dword [esp + 0x4c], eax
movsx eax, word [esi + 0x1e]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x54]
add eax, dword [edx + 0x38]
mov dword [esp + 0x54], eax
movsx eax, word [esi + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x34]
add eax, dword [edx + 0x58]
mov dword [esp + 0x34], eax
movsx eax, word [esi + 0x1a]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x30]
add eax, dword [edx + 0x5c]
mov dword [esp + 0x2c], eax
movsx eax, word [esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x2c]
add eax, dword [edx + 0x60]
mov dword [esp + 0x24], eax
movsx eax, word [esi + 0x16]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x64]
mov dword [esp + 0x1c], eax
movsx eax, word [esi + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x24]
add eax, dword [edx + 0x68]
mov dword [esp + 0x14], eax
movsx eax, word [esi + 0x12]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x20]
add eax, dword [edx + 0x6c]
mov dword [esp + 0x5c], eax
movsx eax, word [esi + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x1c]
add eax, dword [edx + 0x70]
mov dword [esp + 0x84], eax
movsx eax, word [esi + 0xe]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0x18]
add eax, dword [edx + 0x74]
mov ebp, dword [edx + 0x84]
mov dword [esp + 0x7c], eax
movsx eax, word [esi + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x78]
mov dword [esp + 0x74], eax
movsx eax, word [esi + 0xa]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0x7c]
mov dword [esp + 0x6c], eax
movsx eax, word [esi + 8]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0xc]
add eax, dword [edx + 0x80]
add ebp, dword [edx + 8]
mov dword [esp + 0x9c], eax
mov eax, dword [edx]
add eax, dword [edx + 0x8c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa4]
mov edi, dword [edx + 0x88]
add edi, dword [edx + 4]
movsx esi, word [esi + 2]
movsx eax, word [eax]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x9c]
movzx ecx, di
imul ecx, esi
movzx eax, bp
imul eax, ebx
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0xa4]
sar ecx, 0x10
sar eax, 0x10
add ecx, eax
movzx eax, dx
mov dword [esp + 0x10], ecx
movsx ecx, word [ebx + 6]
imul eax, ecx
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
movzx eax, ax
imul eax, dword [esp + 0x70]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
movzx eax, ax
imul eax, dword [esp + 0x78]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
movzx eax, ax
imul eax, dword [esp + 0x80]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
movzx eax, ax
imul eax, dword [esp + 0x88]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
movzx eax, ax
imul eax, dword [esp + 0x90]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
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 + 0x14]
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 edi, 0x10
imul edi, esi
sar ebp, 0x10
imul ebp, dword [esp + 0x98]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
imul eax, dword [esp + 0x30]
sar edx, 0x10
imul edx, ecx
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 + 0x6c]
sar eax, 0x10
imul eax, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
add esi, edi
add esi, ebp
add esi, edx
add esi, eax
mov eax, dword [esp + 0x74]
sar eax, 0x10
imul eax, dword [esp + 0x78]
add esi, eax
mov eax, dword [esp + 0x7c]
sar eax, 0x10
imul eax, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0x84]
sar eax, 0x10
imul eax, dword [esp + 0x88]
add esi, eax
mov eax, dword [esp + 0x8c]
sar eax, 0x10
imul eax, dword [esp + 0x90]
add esi, eax
mov eax, dword [esp + 0x94]
sar eax, 0x10
imul eax, dword [esp + 0x48]
add esi, eax
mov eax, dword [esp + 0x4c]
sar eax, 0x10
imul eax, dword [esp + 0x50]
add esi, eax
mov eax, dword [esp + 0x54]
sar eax, 0x10
imul eax, dword [esp + 0x58]
add esi, eax
mov eax, dword [esp + 0x5c]
sar eax, 0x10
imul eax, dword [esp + 0x60]
add esi, eax
mov eax, dword [esp + 0x14]
sar eax, 0x10
imul eax, dword [esp + 0x18]
add esi, eax
mov eax, dword [esp + 0x1c]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add esi, eax
mov eax, dword [esp + 0x24]
sar eax, 0x10
imul eax, dword [esp + 0x28]
add esi, eax
mov eax, dword [esp + 0x2c]
sar eax, 0x10
imul eax, dword [esp + 0x30]
add esi, eax
mov eax, dword [esp + 0x34]
sar eax, 0x10
imul eax, dword [esp + 0x38]
add esi, eax
mov eax, dword [esp + 0x3c]
sar eax, 0x10
imul eax, dword [esp + 0x40]
add esi, eax
sar esi, 5
inc esi
sar esi, 1
cmp esi, 0x7fff
jle 0x54ead0
mov esi, 0x7fff
jmp 0x54eade
cmp esi, 0xffff8000
mov eax, 0xffff8000
cmovl esi, eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
add edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x64]
mov word [eax], si
add eax, 2
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], edx
cmp edx, dword [esp + 0xb0]
jl 0x54e6e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [esp + 0xb0], eax
jle 0x54eddc
lea ebx, [ebx]
sar eax, 0x10
mov edx, dword [esp + 0xa4]
mov ecx, dword [ebp + eax*4 + 0x30]
add ecx, dword [ebp + eax*4 + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + eax*4 + 0x34]
add ecx, dword [ebp + eax*4 + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + eax*4 + 0x38]
add ecx, dword [ebp + eax*4 + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + eax*4 + 0x3c]
add ecx, dword [ebp + eax*4 + 0x20]
movsx esi, word [edx + 0x16]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x64]
movsx edi, word [edx + 0x14]
mov ecx, dword [ecx + eax*4 + 0x40]
movsx ebx, word [edx + 0x12]
add ecx, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x34], ecx
movsx ecx, word [edx + 0xe]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + eax*4 + 0x44]
add ecx, dword [esi + eax*4 + 0x18]
mov dword [esp + 0x2c], ecx
movsx ecx, word [edx + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + eax*4 + 0x48]
add ecx, dword [esi + eax*4 + 0x14]
mov dword [esp + 0x24], ecx
movsx ecx, word [edx + 0xa]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + eax*4 + 0x4c]
add ecx, dword [esi + eax*4 + 0x10]
mov dword [esp + 0x1c], ecx
movsx ecx, word [edx + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + eax*4 + 0x50]
add ecx, dword [esi + eax*4 + 0xc]
mov dword [esp + 0x14], ecx
movsx ecx, word [edx + 6]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + eax*4 + 0x54]
add ecx, dword [esi + eax*4 + 8]
mov dword [esp + 0x5c], ecx
movsx ecx, word [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + eax*4 + 0x58]
add ecx, dword [esi + eax*4 + 4]
mov dword [esp + 0x54], ecx
mov ecx, esi
movsx ebp, word [edx + 0x10]
mov ecx, dword [ecx + eax*4 + 0x5c]
mov eax, dword [esi + eax*4]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], eax
movsx eax, word [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
movzx ecx, cx
imul ecx, edi
movzx eax, ax
imul eax, dword [esp + 0x98]
movsx edx, word [edx + 2]
sar ecx, 0x10
sar eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x3c]
movzx ecx, cx
imul ecx, ebx
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x38]
movzx ecx, cx
imul ecx, ebp
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x34]
movzx ecx, cx
imul ecx, dword [esp + 0x30]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x2c]
movzx ecx, cx
imul ecx, dword [esp + 0x28]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x24]
movzx ecx, cx
imul ecx, dword [esp + 0x20]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x1c]
movzx ecx, cx
imul ecx, dword [esp + 0x18]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, cx
imul ecx, dword [esp + 0x60]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x5c]
movzx ecx, cx
imul ecx, dword [esp + 0x58]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x54]
movzx ecx, cx
imul ecx, edx
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 + 0x98]
add eax, ecx
mov ecx, dword [esp + 0x40]
sar ecx, 0x10
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x3c]
sar ecx, 0x10
imul ecx, ebx
add eax, ecx
mov ecx, dword [esp + 0x38]
sar ecx, 0x10
imul ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x34]
sar ecx, 0x10
imul ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x2c]
sar ecx, 0x10
imul ecx, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x24]
sar ecx, 0x10
imul ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x1c]
sar ecx, 0x10
imul ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x14]
sar ecx, 0x10
imul ecx, dword [esp + 0x60]
add eax, ecx
mov ecx, dword [esp + 0x5c]
sar ecx, 0x10
imul ecx, dword [esp + 0x58]
add eax, ecx
mov ecx, dword [esp + 0x54]
sar ecx, 0x10
imul ecx, edx
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 0x54eda3
mov eax, 0x7fff
jmp 0x54edb0
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov ecx, dword [esp + 0x68]
mov ebp, esi
mov word [ecx], ax
add ecx, 2
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0xb4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0xb0]
jl 0x54eb30
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x90
ret
xor ebx, ebx
mov dword [esp + 0x6c], ebx
cmp dword [esp + 0xb0], ebx
jle 0x54eddc
mov esi, dword [esp + 0xac]
movsx edi, si
mov dword [esp + 0x98], edi
lea esp, [esp]
mov eax, ebx
movzx ecx, bx
sar eax, 0x10
imul ecx, edi
lea edx, [eax*4]
add edx, ebp
mov ebp, dword [esp + 0xa4]
sar ecx, 0x10
sub esi, ecx
dec esi
lea eax, [ecx + ecx*8]
movsx ebx, word [ebp + eax*2 + 0x10]
mov dword [esp + 0x40], ebx
mov ebx, dword [edx + 0x20]
mov dword [esp + 0x44], ebx
movsx ebx, word [ebp + eax*2 + 0xe]
mov dword [esp + 0x38], ebx
mov ebx, dword [edx + 0x1c]
mov dword [esp + 0x3c], ebx
movsx ebx, word [ebp + eax*2 + 0xc]
mov dword [esp + 0x30], ebx
mov ebx, dword [edx + 0x18]
mov dword [esp + 0x34], ebx
movsx ebx, word [ebp + eax*2 + 0xa]
mov dword [esp + 0x28], ebx
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x2c], ebx
movsx ebx, word [ebp + eax*2 + 8]
mov dword [esp + 0x20], ebx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x24], ebx
movsx ebx, word [ebp + eax*2 + 6]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x1c], ebx
movsx ebx, word [ebp + eax*2 + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0x14], ebx
movsx ebx, word [ebp + eax*2 + 2]
movsx eax, word [ebp + eax*2]
mov dword [esp + 0x50], eax
lea eax, [esi + esi*8]
movsx edi, word [ebp + eax*2 + 4]
movsx ecx, word [ebp + eax*2 + 2]
mov ebp, dword [edx + 0x38]
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0xa4]
mov esi, dword [edx + 0x40]
mov dword [esp + 0x58], ebx
mov ebx, dword [edx + 4]
movsx ebp, word [ebp + eax*2 + 6]
mov dword [esp + 0x70], ebp
mov ebp, dword [edx + 0x34]
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x5c], ebx
mov ebx, dword [edx]
mov dword [esp + 0x54], ebx
movsx ebp, word [ebp + eax*2 + 8]
mov dword [esp + 0x78], ebp
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0xa4]
mov ebx, dword [edx + 0x3c]
movsx ebp, word [ebp + eax*2 + 0xa]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0xa4]
movsx ebp, word [ebp + eax*2 + 0xc]
mov dword [esp + 0x88], ebp
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x8c], ebp
mov ebp, dword [esp + 0xa4]
movsx ebp, word [ebp + eax*2 + 0xe]
mov dword [esp + 0x90], ebp
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x94], ebp
mov ebp, dword [esp + 0xa4]
movsx ebp, word [ebp + eax*2 + 0x10]
mov dword [esp + 0x48], ebp
mov ebp, dword [edx + 0x24]
mov dword [esp + 0x4c], ebp
mov ebp, dword [edx + 0x44]
mov edx, dword [esp + 0xa4]
movsx edx, word [edx + eax*2]
movzx eax, si
imul eax, ecx
sar eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
imul eax, dword [esp + 0x40]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
movzx eax, ax
imul eax, dword [esp + 0x38]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
movzx eax, ax
imul eax, dword [esp + 0x30]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
imul eax, dword [esp + 0x28]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
movzx eax, ax
imul eax, dword [esp + 0x20]
sar eax, 0x10
add dword [esp + 0x10], eax
movzx eax, bx
imul eax, edi
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
imul eax, dword [esp + 0x18]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
movzx eax, ax
imul eax, dword [esp + 0x60]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
movzx eax, ax
imul eax, dword [esp + 0x58]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
movzx eax, ax
imul eax, dword [esp + 0x50]
sar eax, 0x10
add dword [esp + 0x10], eax
movzx eax, bp
imul eax, edx
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
movzx eax, ax
imul eax, dword [esp + 0x48]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
movzx eax, ax
imul eax, dword [esp + 0x90]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
movzx eax, ax
imul eax, dword [esp + 0x88]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
movzx eax, ax
imul eax, dword [esp + 0x80]
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
movzx eax, ax
imul eax, dword [esp + 0x78]
sar esi, 0x10
imul esi, ecx
sar ebx, 0x10
imul ebx, edi
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
movzx eax, ax
imul eax, dword [esp + 0x70]
sar ebp, 0x10
imul ebp, edx
sar eax, 0x10
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
sar eax, 0x10
imul eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
add ecx, esi
add ecx, eax
mov eax, dword [esp + 0x3c]
sar eax, 0x10
imul eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x34]
sar eax, 0x10
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x2c]
sar eax, 0x10
imul eax, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x24]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x1c]
sar eax, 0x10
add ecx, ebx
imul eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x14]
sar eax, 0x10
imul eax, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0x5c]
sar eax, 0x10
imul eax, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x54]
sar eax, 0x10
imul eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x4c]
sar eax, 0x10
add ecx, ebp
imul eax, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x94]
sar eax, 0x10
imul eax, dword [esp + 0x90]
add ecx, eax
mov eax, dword [esp + 0x8c]
sar eax, 0x10
imul eax, dword [esp + 0x88]
add ecx, eax
mov eax, dword [esp + 0x84]
sar eax, 0x10
imul eax, dword [esp + 0x80]
add ecx, eax
mov eax, dword [esp + 0x7c]
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 0x54f1eb
mov ecx, 0x7fff
jmp 0x54f1f9
cmp ecx, 0xffff8000
mov eax, 0xffff8000
cmovl ecx, eax
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x98]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
cmp ebx, dword [esp + 0xb0]
jl 0x54ee10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret