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

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