Function at 0x10006c50
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], esi
lea eax, [esi + 0x100]
lea ebx, [esi + 0x200]
lea ecx, [esi + 0x300]
lea edx, [esi + 0x400]
add esi, 0x500
mov edi, edx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov edi, esi
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x7b8]
cmp eax, 2
jle 0x1000726d
mov dword [esp + 0x20], 0
sub eax, 4
cmp eax, 1
sbb edi, edi
neg edi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 4
mov eax, dword [ecx + eax*4]
xor ecx, ecx
inc eax
mov ebx, dword [esp + 0x1c]
inc eax
mov cl, byte [eax - 2]
inc eax
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 2]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx*8 + 0x1002e360]
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x1c], 4
movsx ecx, word [ebp]
inc eax
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi], ebx
xor ecx, ecx
mov cl, byte [eax]
inc eax
mov ebx, dword [esp + 0x1c]
inc eax
lea ebp, [ecx*8 + 0x1002e360]
add edx, 4
movsx ecx, word [ebp]
add esi, 4
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi - 4], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x1c], 4
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10006ce5
mov dword [esp + 0x28], 4
xor ecx, ecx
inc eax
mov ebx, dword [esp + 0x18]
inc eax
mov cl, byte [eax - 2]
inc eax
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 2]
mov ebx, dword [esp + 0x18]
lea ebp, [ecx*8 + 0x1002e360]
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x18]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x18], 4
movsx ecx, word [ebp]
inc eax
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x18]
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi], ebx
xor ecx, ecx
mov cl, byte [eax]
inc eax
mov ebx, dword [esp + 0x18]
inc eax
lea ebp, [ecx*8 + 0x1002e360]
add edx, 4
movsx ecx, word [ebp]
add esi, 4
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi - 4], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x18]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x18], 4
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10006e34
test byte [esp + 0x20], 1
jne 0x10006f88
sub edx, 0x20
sub esi, 0x20
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 8
jl 0x10006cd2
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 4
mov eax, dword [ecx + eax*4 + 0x20]
xor ecx, ecx
inc eax
mov ebx, dword [esp + 0x14]
inc eax
mov cl, byte [eax - 2]
inc eax
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 2]
mov ebx, dword [esp + 0x14]
lea ebp, [ecx*8 + 0x1002e360]
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x14]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x14], 4
movsx ecx, word [ebp]
inc eax
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x14]
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi], ebx
xor ecx, ecx
mov cl, byte [eax]
inc eax
mov ebx, dword [esp + 0x14]
inc eax
lea ebp, [ecx*8 + 0x1002e360]
add edx, 4
movsx ecx, word [ebp]
add esi, 4
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi - 4], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x14]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x14], 4
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10006fb3
mov dword [esp + 0x28], 4
xor ecx, ecx
inc eax
mov ebx, dword [esp + 0x10]
inc eax
mov cl, byte [eax - 2]
inc eax
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 2]
mov ebx, dword [esp + 0x10]
lea ebp, [ecx*8 + 0x1002e360]
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x10]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x10], 4
movsx ecx, word [ebp]
inc eax
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x10]
lea ebp, [ecx*8 + 0x1002db60]
movsx ecx, word [ebp]
mov dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi], ebx
xor ecx, ecx
mov cl, byte [eax]
inc eax
mov ebx, dword [esp + 0x10]
inc eax
lea ebp, [ecx*8 + 0x1002e360]
add edx, 4
movsx ecx, word [ebp]
add esi, 4
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
xor ecx, ecx
add dword [esi - 4], ebx
mov cl, byte [eax - 1]
mov ebx, dword [esp + 0x10]
lea ebp, [ecx*8 + 0x1002eb60]
add eax, edi
add dword [esp + 0x10], 4
movsx ecx, word [ebp]
add dword [ebx], ecx
mov cx, word [ebp + 2]
sar cx, 2
movsx ebx, cx
add dword [edx - 4], ebx
mov cx, word [ebp + 4]
sar cx, 2
movsx ebx, cx
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10007102
test byte [esp + 0x20], 1
jne 0x10007256
sub edx, 0x20
sub esi, 0x20
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 8
jl 0x10006f9f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 4
mov ecx, dword [ecx + eax*4]
xor edi, edi
add ecx, 2
mov di, word [ecx - 2]
mov ebx, dword [esp + 0x1c]
mov eax, edi
add ecx, 2
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
mov eax, edi
add dword [esi], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x1c]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x1c]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x1c], 4
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [edi + 4]
xor edi, edi
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x1c]
mov di, word [ecx - 2]
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
add edx, 4
sar ax, 2
add esi, 4
movsx ebx, ax
mov eax, edi
add dword [esi - 4], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x1c]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
mov ebx, dword [esp + 0x1c]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x1c], 4
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [edi + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10007288
mov dword [esp + 0x28], 4
xor edi, edi
add ecx, 2
mov di, word [ecx - 2]
add ecx, 2
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx ebx, word [ebp]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
mov eax, edi
add dword [esi], ebx
and eax, 0x3e0
and edi, 0x7c00
shr edi, 4
lea ebp, [eax*2 + 0x1002e360]
movsx ebx, word [ebp]
add edi, 0x1002eb60
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x18]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x18], 4
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [edi + 4]
xor edi, edi
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov di, word [ecx - 2]
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx ebx, word [ebp]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add edx, 4
add esi, 4
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
mov eax, edi
add dword [esi - 4], ebx
and eax, 0x3e0
and edi, 0x7c00
shr edi, 4
lea ebp, [eax*2 + 0x1002e360]
movsx ebx, word [ebp]
add edi, 0x1002eb60
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
mov ebx, dword [esp + 0x18]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x18], 4
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [edi + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x100073ed
test byte [esp + 0x20], 1
jne 0x10007578
sub edx, 0x20
sub esi, 0x20
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 8
jl 0x10007275
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 4
mov ecx, dword [ecx + eax*4 + 0x20]
xor edi, edi
add ecx, 2
mov di, word [ecx - 2]
mov ebx, dword [esp + 0x14]
mov eax, edi
add ecx, 2
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
mov eax, edi
add dword [esi], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x14]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x14]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x14], 4
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [edi + 4]
xor edi, edi
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x14]
mov di, word [ecx - 2]
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
add edx, 4
sar ax, 2
add esi, 4
movsx ebx, ax
mov eax, edi
add dword [esi - 4], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x14]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
mov ebx, dword [esp + 0x14]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x14], 4
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [edi + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x100075a3
mov dword [esp + 0x28], 4
xor edi, edi
add ecx, 2
mov di, word [ecx - 2]
mov ebx, dword [esp + 0x10]
mov eax, edi
add ecx, 2
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
mov eax, edi
add dword [esi], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x10]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x10]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x10], 4
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [edi + 4]
xor edi, edi
sar ax, 2
movsx ebx, ax
add dword [esi], ebx
mov ebx, dword [esp + 0x10]
mov di, word [ecx - 2]
mov eax, edi
and eax, 0x1f
shl eax, 6
lea ebp, [eax + 0x1002db60]
movsx eax, word [ebp]
mov dword [ebx], eax
mov ax, word [ebp + 2]
sar ax, 2
movsx ebx, ax
add dword [edx], ebx
mov ax, word [ebp + 4]
add edx, 4
sar ax, 2
add esi, 4
movsx ebx, ax
mov eax, edi
add dword [esi - 4], ebx
and eax, 0x3e0
mov ebx, dword [esp + 0x10]
and edi, 0x7c00
lea ebp, [eax*2 + 0x1002e360]
movsx eax, word [ebp]
shr edi, 4
add dword [ebx], eax
mov ax, word [ebp + 2]
add edi, 0x1002eb60
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [ebp + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
mov ebx, dword [esp + 0x10]
movsx eax, word [edi]
add dword [ebx], eax
mov ax, word [edi + 2]
add dword [esp + 0x10], 4
sar ax, 2
movsx ebx, ax
add dword [edx - 4], ebx
mov ax, word [edi + 4]
sar ax, 2
movsx ebx, ax
add dword [esi - 4], ebx
dec dword [esp + 0x28]
jne 0x10007708
test byte [esp + 0x20], 1
jne 0x10007872
sub edx, 0x20
sub esi, 0x20
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 8
jl 0x1000758f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret