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

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