Function at 0x1000c7e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fd998
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, 0x101080e7
call fcn.100de193
cmp byte [ebp + 8], 0
je 0x1000c8a1
mov ecx, esi
call fcn.1000c420
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x1000c8a1
push 0x100ed714
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000c8a1
wait
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.1000c7a0
mov byte [ebp - 0x19], al
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c888
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [ebp - 0x19], 0
je 0x1000c8a1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
wait
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1000c8bd
push ecx
call fcn.1000ca80
mov dword [esi + 8], 0
wait
jmp 0x1000c8dd
mov dword [ebp - 4], 0xfffffffe
lea eax, [esi + 0x58]
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0xc]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x48], eax
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
cmp eax, ecx
je 0x1000c92b
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
call fcn.1000de40
mov dword [ebp - 0x6c], edi
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ebp - 0x68], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x58], xmm0
lea ecx, [ebp - 0x6c]
call fcn.1000dab0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
lea esi, [edi + 0x38]
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x90], edi
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ebp - 0x7c], xmm0
lea ecx, [ebp - 0x90]
call fcn.1000dab0
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x8c]
jne 0x1000ca51
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x88]
jne 0x1000ca51
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x84]
jne 0x1000ca51
cmp ecx, eax
je 0x1000c9d2
mov esi, dword [ebp - 0x5c]
cmp esi, dword [ebp - 0x80]
jne 0x1000ca54
lea esi, [edi + 0x38]
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x48]
sub eax, ecx
jne 0x1000c9e0
test ecx, ecx
je 0x1000c9e7
mov ecx, esi
call fcn.1000d9b0
mov eax, dword [edi + 0x44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100fa0c0]
cvtpd2ps xmm1, xmm0
movss dword [ebp + 8], xmm1
movss xmm0, dword [edi + 8]
mulss xmm0, xmm1
call fcn.100de660
mov dword [edi], eax
movss xmm0, dword [edi + 0xc]
mulss xmm0, dword [ebp + 8]
call fcn.100de660
mov dword [edi + 4], eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x34], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x5c]
push 0x128
push dword [esi + 0x18]
call fcn.100dcba6
add esp, 8
add esi, 0x1c
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x68]
call fcn.1000de40
lea ecx, [ebp - 0x6c]
call fcn.1000dab0
jmp 0x1000c954