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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x64
push ebx
push esi
push edi
cmp eax, 0x12
je 0x6a7ceb
cmp eax, 0x18
je 0x6a7a8b
cmp eax, 0x24
mov eax, dword [ebp + 8]
jne 0x6a8002
xor ecx, ecx
mov dword [ebp - 0x64], ecx
cmp dword [ebp + 0x1c], ecx
jle 0x6a8002
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
nop
mov eax, ecx
movsx ebx, word [esi + 4]
sar eax, 0x10
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x24], ebx
mov edi, dword [edx + 0x88]
mov eax, dword [edx + 0x44]
add eax, dword [edx + 0x48]
mov dword [ebp - 0x14], eax
movsx eax, word [esi + 0x22]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x40]
add eax, dword [edx + 0x4c]
mov dword [ebp - 0xc], eax
movsx eax, word [esi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x50]
mov dword [ebp - 4], eax
movsx eax, word [esi + 0x1e]
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x38]
add eax, dword [edx + 0x54]
mov dword [ebp + 0x14], eax
mov eax, dword [edx + 0x34]
add eax, dword [edx + 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0x30]
add eax, dword [edx + 0x5c]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x2c]
add eax, dword [edx + 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 0x24]
add eax, dword [edx + 0x68]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0x20]
add eax, dword [edx + 0x6c]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x1c]
add eax, dword [edx + 0x70]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x18]
add eax, dword [edx + 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x38], eax
movsx eax, word [esi + 0xa]
add edi, dword [edx + 4]
mov ecx, dword [edx + 0x8c]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0x7c]
mov dword [ebp - 0x30], eax
movsx eax, word [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0xc]
add eax, dword [edx + 0x80]
mov dword [ebp - 0x28], eax
movsx eax, word [esi + 6]
movsx esi, word [esi + 2]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
add eax, dword [edx + 0x84]
mov edx, dword [edx]
mov dword [ebp - 0x20], eax
add edx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x10]
movsx ecx, word [eax]
mov eax, dword [ebp + 0x14]
movzx ebx, ax
movsx eax, word [esi + 0x1c]
imul ebx, eax
mov dword [ebp + 8], ebx
sar dword [ebp + 8], 0x10
mov eax, dword [ebp - 4]
movzx eax, ax
imul eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0xc]
movzx eax, ax
imul eax, dword [ebp - 0x10]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x14]
movzx eax, ax
imul eax, dword [ebp - 0x18]
sar eax, 0x10
add ebx, eax
movzx eax, dx
imul eax, ecx
sar eax, 0x10
add ebx, eax
movzx eax, di
imul eax, dword [ebp - 0x1c]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x20]
movzx eax, ax
imul eax, dword [ebp - 0x24]
mov dword [ebp + 8], ebx
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x28]
movzx eax, ax
imul eax, dword [ebp - 0x2c]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x30]
movzx eax, ax
imul eax, dword [ebp - 0x34]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x38]
movzx eax, ax
imul eax, dword [ebp - 0x3c]
sar eax, 0x10
add ebx, eax
mov eax, dword [ebp - 0x40]
movzx eax, ax
mov dword [ebp + 8], ebx
movsx ebx, word [esi + 0xc]
imul eax, ebx
movsx ebx, word [esi + 0xe]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x44]
movzx eax, ax
imul eax, ebx
movsx ebx, word [esi + 0x10]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x48]
movzx eax, ax
imul eax, ebx
movsx ebx, word [esi + 0x12]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x4c]
movzx eax, ax
imul eax, ebx
movsx ebx, word [esi + 0x14]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x50]
movzx eax, ax
imul eax, ebx
movsx ebx, word [esi + 0x16]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x54]
movzx eax, ax
imul eax, ebx
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x58]
movsx ebx, word [esi + 0x18]
movzx eax, ax
imul eax, ebx
movsx ebx, word [esi + 0x1a]
sar dword [ebp + 0x14], 0x10
sar edx, 0x10
imul edx, ecx
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [ebp - 0x5c]
movzx eax, ax
imul eax, ebx
mov ebx, dword [ebp + 0x14]
sar edi, 0x10
imul edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
sar eax, 0x10
add dword [ebp + 8], eax
movsx eax, word [esi + 0x1c]
imul ebx, eax
mov eax, dword [ebp - 4]
sar eax, 0x10
imul eax, dword [ebp - 8]
sar ecx, 0x10
mov dword [ebp + 0x14], ebx
mov ebx, dword [ebp + 8]
add ebx, dword [ebp + 0x14]
add ebx, eax
mov eax, dword [ebp - 0xc]
sar eax, 0x10
imul eax, dword [ebp - 0x10]
add ebx, eax
mov eax, dword [ebp - 0x14]
sar eax, 0x10
imul eax, dword [ebp - 0x18]
add ebx, eax
mov eax, dword [ebp - 0x20]
sar eax, 0x10
add ebx, edx
imul eax, dword [ebp - 0x24]
mov edx, ebx
add edx, edi
mov dword [ebp + 8], ebx
add edx, eax
mov eax, dword [ebp - 0x28]
sar eax, 0x10
imul eax, dword [ebp - 0x2c]
add edx, eax
mov eax, dword [ebp - 0x30]
sar eax, 0x10
imul eax, dword [ebp - 0x34]
add edx, eax
mov eax, dword [ebp - 0x38]
sar eax, 0x10
imul eax, dword [ebp - 0x3c]
add edx, eax
movsx eax, word [esi + 0xc]
imul ecx, eax
movsx eax, word [esi + 0xe]
add edx, ecx
mov ecx, dword [ebp - 0x44]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x10]
add edx, ecx
mov ecx, dword [ebp - 0x48]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x12]
add edx, ecx
mov ecx, dword [ebp - 0x4c]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x14]
add edx, ecx
mov ecx, dword [ebp - 0x50]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x16]
add edx, ecx
mov ecx, dword [ebp - 0x54]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x18]
add edx, ecx
mov ecx, dword [ebp - 0x58]
sar ecx, 0x10
imul ecx, eax
movsx eax, word [esi + 0x1a]
add edx, ecx
mov ecx, dword [ebp - 0x5c]
sar ecx, 0x10
imul ecx, eax
add edx, ecx
sar edx, 5
inc edx
sar edx, 1
cmp edx, 0x7fff
jle 0x6a7a58
mov edx, 0x7fff
jmp 0x6a7a66
cmp edx, 0xffff8000
mov eax, 0xffff8000
cmovl edx, eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp + 0x20]
mov dword [ebp - 0x64], ecx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x60], eax
cmp ecx, dword [ebp + 0x1c]
jl 0x6a7720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x1c], eax
jle 0x6a7fff
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
nop
sar eax, 0x10
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
mov esi, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
add eax, dword [edx + 0x30]
mov dword [ebp - 0x48], eax
movsx eax, word [esi + 0x16]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x34]
mov dword [ebp - 0x50], eax
movsx eax, word [esi + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0x24]
add eax, dword [edx + 0x38]
mov dword [ebp - 0x58], eax
movsx eax, word [esi + 0x12]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 0x20]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x60], eax
movsx eax, word [esi + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0x1c]
add eax, dword [edx + 0x40]
mov dword [ebp + 0x14], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 0x18]
add eax, dword [edx + 0x44]
mov dword [ebp + 8], eax
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0x4c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [edx + 0x48]
add edi, dword [edx + 0x14]
movsx ebx, word [esi + 0xc]
movsx eax, word [eax + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
add eax, dword [edx + 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx esi, word [esi + 0xa]
movzx ecx, cx
movsx eax, word [eax + 6]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 8]
add eax, dword [edx + 0x54]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
imul ecx, ebx
movsx eax, word [eax + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 4]
add eax, dword [edx + 0x58]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
sar ecx, 0x10
movsx eax, word [eax + 2]
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
add eax, dword [edx + 0x5c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
movsx edx, word [eax]
movzx eax, di
imul eax, esi
sar eax, 0x10
add eax, ecx
mov ecx, dword [ebp + 0x14]
movzx ecx, cx
imul ecx, dword [ebp - 0x64]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x60]
movzx ecx, cx
imul ecx, dword [ebp - 0x5c]
sar ecx, 0x10
add eax, ecx
sar edi, 0x10
mov ecx, dword [ebp - 0x58]
movzx ecx, cx
imul ecx, dword [ebp - 0x54]
imul edi, esi
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x50]
movzx ecx, cx
imul ecx, dword [ebp - 0x4c]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x48]
movzx ecx, cx
imul ecx, dword [ebp - 0x44]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x40]
movzx ecx, cx
imul ecx, edx
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x3c]
movzx ecx, cx
imul ecx, dword [ebp - 0x38]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x34]
movzx ecx, cx
imul ecx, dword [ebp - 0x30]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, cx
imul ecx, dword [ebp - 0x28]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, cx
imul ecx, dword [ebp - 0x20]
sar ecx, 0x10
add eax, ecx
mov ecx, dword [ebp + 8]
sar ecx, 0x10
add eax, edi
imul ecx, ebx
add eax, ecx
mov ecx, dword [ebp + 0x14]
sar ecx, 0x10
imul ecx, dword [ebp - 0x64]
add eax, ecx
mov ecx, dword [ebp - 0x60]
sar ecx, 0x10
imul ecx, dword [ebp - 0x5c]
add eax, ecx
mov ecx, dword [ebp - 0x58]
sar ecx, 0x10
imul ecx, dword [ebp - 0x54]
add eax, ecx
mov ecx, dword [ebp - 0x50]
sar ecx, 0x10
imul ecx, dword [ebp - 0x4c]
add eax, ecx
mov ecx, dword [ebp - 0x48]
sar ecx, 0x10
imul ecx, dword [ebp - 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x40]
sar ecx, 0x10
imul ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x3c]
sar ecx, 0x10
imul ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x34]
sar ecx, 0x10
imul ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
sar ecx, 0x10
imul ecx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x24]
sar ecx, 0x10
imul ecx, dword [ebp - 0x20]
add eax, ecx
sar eax, 5
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x6a7cb7
mov eax, 0x7fff
jmp 0x6a7cc4
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov ecx, dword [ebp - 0x1c]
mov word [ecx], ax
add ecx, 2
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp + 0x1c]
jl 0x6a7aa0
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 0x1c], ecx
jle 0x6a7fff
mov eax, dword [ebp + 0x18]
movsx ebx, ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp + 0xc]
mov eax, ecx
sar eax, 0x10
lea edx, [edx + eax*4]
mov esi, dword [ebp + 0x10]
movzx eax, cx
imul eax, ebx
mov edi, dword [edx + 4]
mov dword [ebp - 4], edx
mov edx, dword [edx]
sar eax, 0x10
mov dword [ebp - 0x44], eax
lea eax, [eax + eax*8]
movsx ecx, word [esi + eax*2 + 0x10]
movsx ebx, word [esi + eax*2 + 4]
mov dword [ebp - 0x54], ecx
movsx ecx, word [esi + eax*2 + 0xe]
mov dword [ebp - 0x58], ecx
movsx ecx, word [esi + eax*2 + 0xc]
mov dword [ebp - 0x5c], ecx
movsx ecx, word [esi + eax*2 + 0xa]
mov dword [ebp - 0x60], ecx
movsx ecx, word [esi + eax*2 + 8]
mov dword [ebp - 0x64], ecx
movsx ecx, word [esi + eax*2 + 6]
movsx esi, word [esi + eax*2 + 2]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], esi
movsx ecx, word [ecx + eax*2]
movzx eax, dx
imul eax, ecx
sar edx, 0x10
imul edx, ecx
sar eax, 0x10
mov dword [ebp + 8], eax
movzx eax, di
imul eax, esi
mov esi, dword [ebp - 4]
sar edi, 0x10
imul edi, dword [ebp - 0x50]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 8]
movzx eax, ax
imul eax, ebx
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
movzx eax, ax
imul eax, dword [ebp + 0x14]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
movzx eax, ax
imul eax, dword [ebp - 0x64]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0x14]
movzx eax, ax
imul eax, dword [ebp - 0x60]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0x18]
movzx eax, ax
imul eax, dword [ebp - 0x5c]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0x1c]
movzx eax, ax
imul eax, dword [ebp - 0x58]
sar eax, 0x10
add dword [ebp + 8], eax
mov eax, dword [esi + 0x20]
movzx eax, ax
imul eax, dword [ebp - 0x54]
sar eax, 0x10
add dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
add ecx, edx
add ecx, edi
mov edx, esi
mov esi, dword [ebp + 0x10]
mov eax, dword [edx + 8]
sar eax, 0x10
imul eax, ebx
mov edi, dword [edx + 0x24]
add ecx, eax
mov eax, dword [edx + 0xc]
sar eax, 0x10
imul eax, dword [ebp + 0x14]
add ecx, eax
mov eax, dword [edx + 0x10]
sar eax, 0x10
imul eax, dword [ebp - 0x64]
add ecx, eax
mov eax, dword [edx + 0x14]
sar eax, 0x10
imul eax, dword [ebp - 0x60]
add ecx, eax
mov eax, dword [edx + 0x18]
sar eax, 0x10
imul eax, dword [ebp - 0x5c]
add ecx, eax
mov eax, dword [edx + 0x1c]
sar eax, 0x10
imul eax, dword [ebp - 0x58]
add ecx, eax
mov eax, dword [edx + 0x20]
sar eax, 0x10
imul eax, dword [ebp - 0x54]
mov edx, dword [edx + 0x44]
add ecx, eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x44]
dec eax
mov dword [ebp + 8], ecx
lea eax, [eax + eax*8]
movsx ecx, word [esi + eax*2 + 4]
movsx ebx, word [esi + eax*2 + 0xe]
mov dword [ebp - 0x50], ecx
movsx ecx, word [esi + eax*2 + 2]
mov dword [ebp - 0x54], ecx
movsx ecx, word [esi + eax*2 + 6]
mov dword [ebp - 0x58], ecx
movsx ecx, word [esi + eax*2 + 8]
mov dword [ebp - 0x5c], ecx
movsx ecx, word [esi + eax*2 + 0xa]
mov dword [ebp - 0x60], ecx
movsx ecx, word [esi + eax*2 + 0xc]
movsx esi, word [esi + eax*2 + 0x10]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
movsx ecx, word [ecx + eax*2]
movzx eax, dx
imul eax, ecx
sar eax, 0x10
mov dword [ebp + 0x14], eax
movzx eax, di
imul eax, esi
mov esi, dword [ebp - 4]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x28]
movzx eax, ax
imul eax, ebx
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x2c]
movzx eax, ax
imul eax, dword [ebp - 0x64]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x30]
movzx eax, ax
imul eax, dword [ebp - 0x60]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x34]
movzx eax, ax
imul eax, dword [ebp - 0x5c]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x38]
movzx eax, ax
imul eax, dword [ebp - 0x58]
sar edx, 0x10
imul edx, ecx
sar edi, 0x10
imul edi, dword [ebp - 0x44]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x40]
movzx eax, ax
imul eax, dword [ebp - 0x54]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov eax, dword [esi + 0x3c]
movzx eax, ax
imul eax, dword [ebp - 0x50]
sar eax, 0x10
add dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, edx
mov edx, esi
add ecx, edi
mov eax, dword [edx + 0x28]
sar eax, 0x10
imul eax, ebx
add ecx, eax
mov eax, dword [edx + 0x2c]
sar eax, 0x10
imul eax, dword [ebp - 0x64]
add ecx, eax
mov eax, dword [edx + 0x30]
sar eax, 0x10
imul eax, dword [ebp - 0x60]
add ecx, eax
mov eax, dword [edx + 0x34]
sar eax, 0x10
imul eax, dword [ebp - 0x5c]
add ecx, eax
mov eax, dword [edx + 0x38]
sar eax, 0x10
imul eax, dword [ebp - 0x58]
add ecx, eax
mov eax, dword [edx + 0x40]
sar eax, 0x10
imul eax, dword [ebp - 0x54]
add ecx, eax
mov eax, dword [edx + 0x3c]
sar eax, 0x10
imul eax, dword [ebp - 0x50]
add eax, dword [ebp + 8]
add eax, ecx
sar eax, 5
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x6a7fc8
mov eax, 0x7fff
jmp 0x6a7fd5
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp + 0x20]
mov ebx, dword [ebp - 0x40]
mov word [edx], ax
add edx, 2
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
cmp ecx, dword [ebp + 0x1c]
jl 0x6a7d08
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret