Function at 0x10016bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fead0
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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, 0x101080e5
call fcn.100de193
mov ecx, esi
call fcn.10016820
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10016c6b
push 0x100ed71c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10016c6b
wait
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.10016b70
mov byte [ebp - 0x19], al
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x10016c52
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [ebp - 0x19], 0
je 0x10016c6b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
wait
mov dword [ebp - 4], 1
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10016c87
push ecx
call fcn.1000ca80
mov dword [esi + 4], 0
wait
jmp 0x10016ca7
mov dword [ebp - 4], 0xfffffffe
lea eax, [esi + 0x54]
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 8]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x4c], eax
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
cmp eax, ecx
je 0x10016cf5
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x3c]
call fcn.1000de40
mov dword [ebp - 0x70], edi
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebp - 0x5c], xmm0
lea ecx, [ebp - 0x70]
call fcn.1000dab0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0
lea esi, [edi + 0x38]
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x94], edi
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ebp - 0x80], xmm0
lea ecx, [ebp - 0x94]
call fcn.1000dab0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x90]
jne 0x10016e1c
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x8c]
jne 0x10016e1c
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x88]
jne 0x10016e1c
cmp ecx, eax
je 0x10016d9f
mov esi, dword [ebp - 0x60]
cmp esi, dword [ebp - 0x84]
jne 0x10016e1f
lea esi, [edi + 0x38]
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x48]
sub eax, ecx
jne 0x10016dad
test ecx, ecx
je 0x10016db4
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 + 0x100fa0d0]
cvtpd2ps xmm1, xmm0
movss dword [ebp - 0x28], 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 - 0x28]
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
mov esi, dword [ebp - 0x60]
push 0x430
push dword [esi + 0x18]
call fcn.100dcba6
add esp, 8
add esi, 0x1c
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x6c]
call fcn.1000de40
lea ecx, [ebp - 0x70]
call fcn.1000dab0
jmp 0x10016d1e