Function at 0x1008cd20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, edx
mov dword [ebp - 0xc], ecx
push esi
mov dword [ebp - 0x10], eax
lea esi, [eax + 0x18]
movzx eax, word [esi + 0xdfe]
test ax, ax
je 0x1008cf92
movsx ecx, word [esi + 0xe00]
cwde
add eax, eax
shl ecx, 4
push ebx
add ecx, esi
push edi
movups xmm1, xmmword [esi + eax*8 - 0x10]
mov dword [ecx - 4], 0xffffffff
movaps xmm0, xmm1
movd dword [ebp - 8], xmm1
psrldq xmm0, 8
movd ebx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
mov dword [ebp - 4], ebx
mov dword [ecx - 0xc], ebx
mov dword [ebp - 0x14], edx
mov dword [ecx - 8], edx
movd dword [ecx - 0x10], xmm1
movups xmmword [ebp - 0x24], xmm1
test ebx, ebx
je 0x1008cf4e
mov eax, dword [esi + 0xe04]
add eax, ebx
cmp eax, 0x3e7
jl 0x1008cdb4
mov dword [ecx - 0xc], 0
jmp 0x1008cf2e
mov edi, dword [esi + 0xe08]
cmp eax, edi
jle 0x1008ced5
movzx ecx, word [esi + 0xe00]
nop dword [eax]
cmp cx, 0x63
je 0x1008cf90
movzx eax, cx
mov edx, edi
cmp cx, 0x62
jg 0x1008cebe
cmp dword [esi + 0x62c], 0
movzx eax, cx
jl 0x1008ce6f
mov ebx, dword [esi + 0x624]
lea eax, [edi + ebx]
mov dword [esi + 0xe08], eax
lea ecx, [eax + eax]
mov eax, 0x7ce
sub eax, ecx
push eax
lea eax, [esi + 0x630]
lea eax, [eax + edi*2]
push eax
lea eax, [esi + 0x630]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memmove
movzx eax, word [esi + 0xe00]
add esp, 0xc
movsx ecx, ax
cmp ecx, 0x62
jge 0x1008ce6c
mov eax, ecx
mov edx, 0x62
shl eax, 4
add eax, 0xc
add eax, esi
sub edx, ecx
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
js 0x1008ce5a
add ecx, ebx
mov dword [eax], ecx
add eax, 0x10
sub edx, 1
jne 0x1008ce50
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xe18]
mov ebx, dword [ebp - 4]
cwde
mov edx, 0x620
shl eax, 4
sub edx, eax
lea edi, [eax + esi]
cmp edi, esi
jb 0x1008cf46
lea ecx, [esi + 0x630]
lea eax, [esi + 0x630]
cmp ecx, eax
ja 0x1008cf46
push edx
lea eax, [edi + 0x10]
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x10]
add esp, 0xc
inc word [esi + 0xe00]
movzx eax, word [esi + 0xe00]
mov edx, dword [ecx + 0xe20]
movzx ecx, ax
mov edi, edx
mov eax, dword [esi + 0xe04]
add eax, ebx
cmp eax, edx
jg 0x1008cdd0
jmp 0x1008ced7
mov edx, edi
movsx ebx, word [esi + 0xe00]
mov eax, dword [ebp - 4]
add ebx, ebx
sub edx, eax
mov dword [esi + ebx*8 - 4], edx
xor edx, edx
sub dword [esi + 0xe08], eax
test eax, eax
jle 0x1008cf2b
mov eax, dword [ebp - 8]
lea edi, [eax + eax]
nop dword [eax + eax]
mov ecx, dword [ebp - 0xc]
add eax, edx
cmp eax, dword [ecx + 4]
jge 0x1008cf46
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + ebx*8 - 4]
add ecx, edx
inc edx
mov ax, word [edi + eax]
add edi, 2
mov word [esi + ecx*2 + 0x630], ax
mov eax, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jl 0x1008cf00
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ecx, edi
push ebx
mov ebx, dword [ebp - 8]
mov edx, ebx
call fcn.1008b930
mov edx, dword [ebp - 0x14]
add esp, 4
jmp 0x1008cf54
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
test edx, edx
je 0x1008cf7a
mov eax, dword [ebp - 0x18]
mov ecx, edi
add eax, 0x318
push edx
mov edx, ebx
lea eax, [esi + eax*2]
push eax
call fcn.1008b990
mov edx, dword [ebp - 0x14]
add esp, 8
sub dword [esi + 0xe04], edx
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edx]
mov dword [ecx], eax
dec word [esi + 0xdfe]
dec word [esi + 0xe00]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret