Function at 0x10016640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100f9218
push 0x100d893f
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x100ff008]
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, 0x10103149
call fcn.100d96c4
mov ecx, esi
call fcn.100162b0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100166fb
push 0x100e84cc
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 0x100166fb
wait
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.10016600
mov byte [ebp - 0x19], al
wait
mov dword [ebp - 4], 0xfffffffe
jmp 0x100166e2
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 0x100166fb
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 0x10016717
push ecx
call fcn.1000c510
mov dword [esi + 4], 0
wait
jmp 0x10016737
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 0x10016785
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x3c]
call fcn.1000d8d0
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.1000d540
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.1000d540
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x90]
jne 0x100168ac
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x8c]
jne 0x100168ac
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x88]
jne 0x100168ac
cmp ecx, eax
je 0x1001682f
mov esi, dword [ebp - 0x60]
cmp esi, dword [ebp - 0x84]
jne 0x100168af
lea esi, [edi + 0x38]
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x48]
sub eax, ecx
jne 0x1001683d
test ecx, ecx
je 0x10016844
mov ecx, esi
call fcn.1000d440
mov eax, dword [edi + 0x44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100f47d0]
cvtpd2ps xmm1, xmm0
movss dword [ebp - 0x28], xmm1
movss xmm0, dword [edi + 8]
mulss xmm0, xmm1
call fcn.100d9bc0
mov dword [edi], eax
movss xmm0, dword [edi + 0xc]
mulss xmm0, dword [ebp - 0x28]
call fcn.100d9bc0
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.100d83a8
add esp, 8
add esi, 0x1c
mov dword [ebp - 0x60], esi
lea ecx, [ebp - 0x6c]
call fcn.1000d8d0
lea ecx, [ebp - 0x70]
call fcn.1000d540
jmp 0x100167ae