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

Disassembly:
sub esp, 0x13c
push ebx
mov ebx, ecx
mov ax, word [ebx + 0x28]
sub ax, word [ebx + 0x24]
mov cx, word [ebx + 0x2a]
sub cx, word [ebx + 0x26]
push ebp
xor ebp, ebp
mov bp, ax
mov eax, dword [ebx + 0x1c]
test eax, eax
movzx ecx, cx
push esi
push edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x30], ecx
je 0x1000b99d
test ebp, ebp
jle 0x1000b99d
test ecx, ecx
jle 0x1000b99d
cmp eax, dword [ebx + 0x20]
sete dl
cmp ebp, 1
mov dword [esp + 0x140], 0
mov byte [esp + 0x27], dl
jne 0x1000ae76
cmp ecx, ebp
jne 0x1000ae76
mov eax, dword [ebx + 0x2c]
cmp eax, 3
ja case.default.0x1000add9
jmp dword [eax*4 + 0x1000b9a8]
mov eax, 4
mov ecx, eax
jmp 0x1000ae25
mov ecx, dword [ebx + 0x48]
mov eax, 1
sub eax, ecx
mov ecx, dword [ebx + 0x4c]
jmp 0x1000ae25
mov esi, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
mov ecx, 1
sub ecx, esi
jmp 0x1000ae25
mov edi, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
mov eax, 1
mov ecx, 1
sub eax, edi
sub ecx, esi
jmp 0x1000ae25
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
add ecx, 0x12
imul ecx, edi
mov esi, edi
imul esi, esi, 0x2c
add ecx, eax
test dl, dl
mov ax, word [ebp + ecx*2]
lea esi, [esi + ebp + 8]
mov word [esi], ax
je 0x1000b99d
mov edx, dword [ebx + 0xc]
push 1
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
push 0
mov dword [ecx + 4], esi
push 0
mov dword [ecx + 8], esi
push edx
lea ecx, [ebx + 0x6c]
call fcn.10008aa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
mov ecx, ebx
call fcn.10009f50
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x60]
mov esi, dword [ebx + 0x5c]
lea edx, [eax + 0xc]
imul edx, ecx
lea edi, [esi + edx*2]
mov edx, dword [esp + 0x30]
add edx, 0xa
cmp eax, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x7c], eax
jge 0x1000b99d
lea edx, [eax - 0xa]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x30]
sub edx, eax
add edx, 9
mov dword [esp + 0x70], edx
jmp 0x1000aec0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0x98]
cmp byte [eax], 0
jne 0x1000b99d
cmp ebp, 1
lea eax, [edi + ecx*2]
jne 0x1000b01f
movsx ecx, word [eax]
movsx edx, word [edi]
imul ecx, ecx, 0x3406
mov ebp, dword [esi]
imul edx, edx, 0x275d
mov dword [esp + 0x10], edx
sar ecx, 0xd
add ebp, ecx
imul ebp, ebp, 0xe31
sub edx, ebp
mov ebp, dword [esi + 8]
sar edx, 0xd
mov dword [esp + 0x98], edx
add edx, ebp
imul edx, edx, 0xffffe3c0
mov ebp, dword [esi]
sar edx, 0xd
add edx, ebp
mov ebp, dword [esi + 0x10]
mov dword [esp + 0x80], edx
add edx, ebp
imul edx, edx, 0x1b2
mov ebp, dword [esi + 8]
sar edx, 0xd
add edx, ebp
mov ebp, dword [esi + 0x18]
add ebp, edx
imul ebp, ebp, 0x32c1
mov dword [esp + 0x90], edx
mov edx, dword [esi + 0x10]
sar ebp, 0xd
add ebp, edx
mov edx, dword [esp + 0x98]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x90]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x80]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 4]
mov dword [esi + 0x28], ebp
lea ebp, [edx + ecx]
mov edx, dword [esp + 0x10]
imul ebp, ebp, 0xe31
sub edx, ebp
mov ebp, dword [esi + 0xc]
sar edx, 0xd
mov dword [esp + 0x9c], edx
add edx, ebp
mov ebp, dword [esi + 4]
imul edx, edx, 0xffffe3c0
sar edx, 0xd
add edx, ebp
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x84], edx
add edx, ebp
mov ebp, dword [esi + 0xc]
imul edx, edx, 0x1b2
sar edx, 0xd
add edx, ebp
mov ebp, dword [esi + 0x1c]
add ebp, edx
imul ebp, ebp, 0x32c1
mov dword [esp + 0x94], edx
mov edx, dword [esi + 0x14]
sar ebp, 0xd
add ebp, edx
mov edx, dword [esp + 0x9c]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x94]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x1c], edx
mov dx, word [esi + 0x20]
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x14], ecx
mov word [edi + 8], dx
mov cx, word [esi + 0x28]
mov ebp, dword [esp + 0x68]
mov word [eax + 8], cx
jmp 0x1000b8b5
cmp dword [esp + 0x30], 1
mov ecx, dword [ebx + 0x48]
jne 0x1000b49a
neg ecx
movsx ebx, word [edi + ecx*2 + 6]
movsx edx, word [eax + ecx*2 + 6]
imul ebx, ebx, 0x3406
movsx eax, word [eax + ecx*2 + 8]
sar ebx, 0xd
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14], eax
movsx eax, word [edi + ecx*2 + 8]
lea ecx, [ebx + edx]
imul eax, eax, 0x275d
imul ecx, ecx, 0xe31
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sar eax, 0xd
add ecx, eax
mov ebp, dword [esp + 0x3c]
imul ecx, ecx, 0xffffe3c0
sar ecx, 0xd
add ecx, edx
mov edx, dword [esp + 0x44]
add edx, ecx
imul edx, edx, 0x1b2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x10]
sar edx, 0xd
imul ebx, ebx, 0x3406
add edx, ebp
mov ebp, dword [esp + 0x4c]
add ebp, edx
imul ebp, ebp, 0x32c1
sar ebp, 0xd
add ebp, dword [esp + 0x44]
sar ebx, 0xd
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x38]
add ebp, ebx
mov dword [esp + 0x64], ebx
imul ebp, ebp, 0xe31
mov ebx, dword [esp + 0x14]
imul ebx, ebx, 0x275d
sub ebx, ebp
mov ebp, dword [esp + 0x40]
sar ebx, 0xd
mov dword [esp + 0xa4], ebx
add ebx, ebp
mov ebp, dword [esp + 0x38]
imul ebx, ebx, 0xffffe3c0
sar ebx, 0xd
add ebx, ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x8c], ebx
add ebx, ebp
mov ebp, dword [esp + 0x40]
imul ebx, ebx, 0x1b2
sar ebx, 0xd
add ebx, ebp
mov ebp, dword [esp + 0x50]
add ebp, ebx
imul ebp, ebp, 0x32c1
sar ebp, 0xd
add ebp, dword [esp + 0x48]
mov dword [esp + 0x134], ebx
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x78]
mov ebx, dword [ebx + 0x48]
mov ebp, dword [esp + 0x28]
add ebx, ebx
lea ebp, [edi + ebp*2]
sub ebp, ebx
mov dword [esp + 0x18], ebx
movsx ebx, word [ebp + 2]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x28]
lea ebx, [edi + ebx*2]
movsx ebx, word [ebx + ebp*2 + 4]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov ebx, edi
sub ebx, ebp
movsx ebx, word [ebx + 2]
mov ebp, dword [esp + 0x74]
imul ebx, ebx, 0x3406
movsx ebp, word [edi + ebp*2 + 4]
imul ebp, ebp, 0x275d
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x2c]
sar ebx, 0xd
add ebp, ebx
imul ebp, ebp, 0xe31
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
sub ebx, ebp
mov ebp, dword [esp + 0x2c]
sar ebx, 0xd
mov dword [esp + 0x140], ebx
add ebx, eax
imul ebx, ebx, 0xffffe3c0
sar ebx, 0xd
add ebx, ebp
lea ebp, [ebx + ecx]
imul ebp, ebp, 0x1b2
sar ebp, 0xd
add ebp, eax
lea eax, [edx + ebp]
imul eax, eax, 0x32c1
sar eax, 0xd
add eax, ecx
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
imul eax, eax, 0x3406
sar eax, 0xd
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov edx, eax
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x275d
mov dword [esp + 0x44], ebx
lea ebx, [edx + ecx]
imul ebx, ebx, 0xe31
sub eax, ebx
sar eax, 0xd
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0xa4]
mov ebx, eax
lea eax, [ebx + ebp]
imul eax, eax, 0xffffe3c0
sar eax, 0xd
add eax, ecx
mov ecx, dword [esp + 0x8c]
add ecx, eax
imul ecx, ecx, 0x1b2
sar ecx, 0xd
add ecx, ebp
mov ebp, dword [esp + 0x134]
add ebp, ecx
imul ebp, ebp, 0x32c1
sar ebp, 0xd
add ebp, dword [esp + 0x8c]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x134]
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x28]
mov edx, ebx
imul edx, edx, 0xe
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [ecx + edi]
lea ebp, [edx + eax]
lea ebx, [edi + ebx*2]
add ecx, ebx
add edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x68]
lea edx, [edx + ebp + 7]
test edx, 0xfffffffe
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 0
jle 0x1000b8b1
movsx ebx, word [eax + 2]
movsx edx, word [ecx + 2]
imul ebx, ebx, 0x3406
movsx ecx, word [ecx]
movsx eax, word [eax]
mov dword [esp + 0x20], ecx
imul eax, eax, 0x275d
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
sar ebx, 0xd
lea ecx, [ebx + edx]
imul ecx, ecx, 0xe31
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sar eax, 0xd
add ecx, eax
imul ecx, ecx, 0xffffe3c0
mov ebp, dword [esp + 0x3c]
sar ecx, 0xd
add ecx, edx
mov edx, dword [esp + 0x44]
add edx, ecx
imul edx, edx, 0x1b2
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
sar edx, 0xd
imul eax, eax, 0x3406
add edx, ebp
mov ebp, dword [esp + 0x4c]
add ebp, edx
imul ebp, ebp, 0x32c1
sar eax, 0xd
sar ebp, 0xd
add ebp, dword [esp + 0x44]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
imul eax, eax, 0x275d
lea ebx, [ecx + edx]
imul ebx, ebx, 0xe31
sub eax, ebx
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x40]
sar eax, 0xd
mov ebx, eax
lea eax, [ebx + ebp]
imul eax, eax, 0xffffe3c0
sar eax, 0xd
add eax, ecx
mov ecx, dword [esp + 0x48]
add ecx, eax
imul ecx, ecx, 0x1b2
sar ecx, 0xd
add ecx, ebp
mov ebp, dword [esp + 0x50]
add ebp, ecx
imul ebp, ebp, 0x32c1
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov dx, word [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x64]
sar ebp, 0xd
add ebp, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x58], ebx
mov word [ecx], dx
mov ax, word [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov word [ecx + 2], ax
mov ax, word [esp + 0x58]
mov word [edx], ax
mov ax, word [esp + 0x60]
mov word [edx + 2], ax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x68]
mov ebx, dword [esp + 0x78]
add edx, 4
add ecx, 4
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x14]
add eax, 4
add ecx, 4
inc edx
mov dword [esp + 0x2c], edx
mov edx, ebp
sub edx, dword [ebx + 0x48]
mov dword [esp + 0x18], eax
add edx, 7
sar edx, 1
cmp dword [esp + 0x2c], edx
mov dword [esp + 0x14], ecx
jl 0x1000b317
jmp 0x1000b8b5
neg ecx
movsx edx, word [eax + ecx*2 + 0xa]
mov dword [esp + 0x1c], edx
movsx edx, word [eax + ecx*2 + 0xc]
mov dword [esp + 0x10], edx
movsx edx, word [edi + ecx*2 + 0xa]
movsx ecx, word [edi + ecx*2 + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, 0x3406
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], ecx
mov ecx, 0xe39e
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov ecx, 0xc77f
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], ecx
mov ecx, 0x6c8
mov dword [esp + 0x20], edx
mov ebp, 0x275d
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov ecx, 0x32c1
lea edx, [esp + 0x34]
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
pxor mm7, mm7
movd mm1, dword [esp + 0x14]
movd mm2, dword [esp + 0x10]
punpckldq mm1, mm2
movd mm0, dword [esp + 0x20]
movd mm2, dword [esp + 0x1c]
punpckldq mm0, mm2
pmaddwd mm1, qword [esp + 0xd8]
psrad mm1, 0xd
movq mm2, qword [edx]
pmaddwd mm0, qword [esp + 0x108]
psrad mm0, 0xd
movq qword [edx], mm0
paddd mm0, mm2
pmaddwd mm0, qword [esp + 0xc8]
psrad mm0, 0xe
movq mm3, qword [edx + 8]
paddd mm0, mm1
movq qword [edx + 8], mm0
paddd mm0, mm3
pmaddwd mm0, qword [esp + 0x138]
psrad mm0, 0xe
movq mm5, qword [edx + 0x10]
paddd mm0, mm2
movq qword [edx + 0x10], mm0
paddd mm0, mm5
psrad mm0, 2
pmaddwd mm0, qword [esp + 0xb8]
movq mm4, qword [edx + 0x18]
psrad mm0, 0xd
movq qword [edx + 0x20], mm4
paddd mm0, mm3
movq qword [edx + 0x18], mm0
paddd mm0, mm4
pmaddwd mm0, qword [esp + 0xf8]
psrad mm0, 0xd
paddd mm0, mm5
movq qword [edx + 0x28], mm0
mov ecx, dword [ebx + 0x48]
neg ecx
movsx edx, word [eax + ecx*2 + 6]
mov dword [esp + 0x1c], edx
movsx edx, word [eax + ecx*2 + 8]
mov dword [esp + 0x10], edx
movsx edx, word [edi + ecx*2 + 6]
movsx ecx, word [edi + ecx*2 + 8]
mov dword [esp + 0x14], ecx
mov ecx, 0x3406
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ecx
mov ecx, 0xe39e
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov ecx, 0xc77f
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], ecx
mov ecx, 0x6c8
mov dword [esp + 0x20], edx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], ecx
mov ecx, 0x32c1
lea edx, [esp + 0x34]
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
pxor mm7, mm7
movd mm1, dword [esp + 0x14]
movd mm2, dword [esp + 0x10]
punpckldq mm1, mm2
movd mm0, dword [esp + 0x20]
movd mm2, dword [esp + 0x1c]
punpckldq mm0, mm2
pmaddwd mm1, qword [esp + 0xc0]
psrad mm1, 0xd
movq mm2, qword [edx]
pmaddwd mm0, qword [esp + 0xb0]
psrad mm0, 0xd
movq qword [edx], mm0
paddd mm0, mm2
pmaddwd mm0, qword [esp + 0xa8]
psrad mm0, 0xe
movq mm3, qword [edx + 8]
paddd mm0, mm1
movq qword [edx + 8], mm0
paddd mm0, mm3
pmaddwd mm0, qword [esp + 0x118]
psrad mm0, 0xe
movq mm5, qword [edx + 0x10]
paddd mm0, mm2
movq qword [edx + 0x10], mm0
paddd mm0, mm5
psrad mm0, 2
pmaddwd mm0, qword [esp + 0xe8]
movq mm4, qword [edx + 0x18]
psrad mm0, 0xd
movq qword [edx + 0x20], mm4
paddd mm0, mm3
movq qword [edx + 0x18], mm0
paddd mm0, mm4
pmaddwd mm0, qword [esp + 0x128]
psrad mm0, 0xd
paddd mm0, mm5
movq qword [edx + 0x28], mm0
mov edx, dword [ebx + 0x48]
lea ebp, [edx + edx]
mov ecx, eax
sub ecx, ebp
movsx ecx, word [ecx + 2]
mov dword [esp + 0x1c], ecx
mov ecx, 2
sub ecx, edx
shl ecx, 1
movsx edx, word [ecx + eax]
movsx ecx, word [ecx + edi]
mov dword [esp + 0x10], edx
mov edx, edi
sub edx, ebp
movsx edx, word [edx + 2]
mov dword [esp + 0x14], ecx
mov ecx, 0x275d
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x20], edx
mov ecx, 0x3406
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], ecx
mov ecx, 0xe39e
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], ecx
mov ecx, 0xc77f
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], ecx
mov ecx, 0x6c8
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], ecx
mov ecx, 0x32c1
lea edx, [esp + 0x34]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
pxor mm7, mm7
movd mm1, dword [esp + 0x14]
movd mm2, dword [esp + 0x10]
punpckldq mm1, mm2
movd mm0, dword [esp + 0x20]
movd mm2, dword [esp + 0x1c]
punpckldq mm0, mm2
pmaddwd mm1, qword [esp + 0x120]
psrad mm1, 0xd
movq mm2, qword [edx]
pmaddwd mm0, qword [esp + 0x110]
psrad mm0, 0xd
movq qword [edx], mm0
paddd mm0, mm2
pmaddwd mm0, qword [esp + 0x100]
psrad mm0, 0xe
movq mm3, qword [edx + 8]
paddd mm0, mm1
movq qword [edx + 8], mm0
paddd mm0, mm3
pmaddwd mm0, qword [esp + 0xf0]
psrad mm0, 0xe
movq mm5, qword [edx + 0x10]
paddd mm0, mm2
movq qword [edx + 0x10], mm0
paddd mm0, mm5
psrad mm0, 2
pmaddwd mm0, qword [esp + 0xe0]
movq mm4, qword [edx + 0x18]
psrad mm0, 0xd
movq qword [edx + 0x20], mm4
paddd mm0, mm3
movq qword [edx + 0x18], mm0
paddd mm0, mm4
pmaddwd mm0, qword [esp + 0xd0]
psrad mm0, 0xd
paddd mm0, mm5
movq qword [edx + 0x28], mm0
mov ecx, dword [ebx + 0x48]
mov ebp, dword [esp + 0x68]
lea eax, [eax + ecx*2]
push esi
push eax
mov eax, ebp
sub eax, ecx
lea edx, [edi + ecx*2]
add eax, 7
push edx
sar eax, 1
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.10009920
jmp 0x1000b8b5
mov ebx, dword [esp + 0x78]
mov al, byte [esp + 0x27]
test al, al
je 0x1000b964
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x1000b90d
cmp eax, dword [esp + 0x30]
jge 0x1000b90d
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
mov al, byte [ecx + 0x15]
test al, al
je 0x1000b8e5
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
push ebp
sub esp, 0xc
mov edx, esp
lea eax, [edi + 8]
lea ecx, [eax + ebp*2 - 2]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
push eax
push 0
push ecx
lea ecx, [ebx + 0x6c]
call fcn.10008aa0
mov edx, dword [esp + 0x6c]
lea eax, [edx + 1]
test eax, eax
jl 0x1000b964
cmp eax, dword [esp + 0x30]
jge 0x1000b964
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x54]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x1000b935
mov ecx, dword [esp + 0x70]
dec ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x28]
push ebp
lea eax, [edi + edx*2]
sub esp, 0xc
add eax, 8
mov edx, esp
lea ecx, [eax + ebp*2 - 2]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
push eax
push 0
push ecx
lea ecx, [ebx + 0x6c]
call fcn.10008aa0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
mov eax, 2
sub edx, eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x28]
add eax, 0xa
cmp ecx, eax
mov dword [esp + 0x7c], ecx
lea edi, [edi + edx*4]
jl 0x1000aebc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret