Function at 0x100a85d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022ccdd
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x254], edi
mov dword [ebp - 4], edi
test edx, edx
je 0x100a8a65
mov ecx, edx
mov dword [ebp - 0x228], edi
xorps xmm0, xmm0
mov dword [ebp - 0x224], edi
movups xmmword [ebp - 0x238], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8632
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.100895c0
push 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100ae1f0
add esp, 0xc
cmp dword [ebp - 0x268], 3
je 0x100a8965
push 0
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100ae1f0
mov eax, dword [ebp - 0x268]
add esp, 0xc
test eax, eax
je 0x100a8965
cmp eax, 1
je 0x100a8965
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
push 0
cmova eax, dword [ebp - 0x238]
mov edi, 1
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 0x254], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x264], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x100a895a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x100a8956
push edi
lea ecx, [ebp - 0x304]
call fcn.100846c0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.1004eea0
add esp, 8
push str._is_locked._renaming
push eax
call fcn.10082bb0
add esp, 8
mov ecx, eax
push 0x100974e0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x304]
call fcn.10082970
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 4
jbe 0x100a8761
mov eax, dword [eax]
push eax
call fcn.100a2540
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.100895a0
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x238]
push eax
call fcn.100a4180
cmp dword [eax + 0x14], 7
jbe 0x100a87a9
mov eax, dword [eax]
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0x10236f54
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100a893e
cmp word [ebp - 0x220], 0
je 0x100a893e
lea ecx, [ebp - 0x250]
call fcn.10089a70
lea eax, [ebp - 0x220]
mov dword [ebp - 0x258], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x250]
push eax
movq qword [ebp - 0x260], xmm0
call fcn.100800e0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.100ae180
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.10089a70
test byte [ebp - 0x258], 1
je 0x100a8949
cmp dword [ebp - 0x258], 1
jne 0x100a885e
cmp dword [ebp - 0x260], 0
setne al
test al, al
je 0x100a8949
push 1
lea ecx, [ebp - 0x39c]
call fcn.100846c0
lea eax, [ebp - 0x39c]
mov byte [ebp - 4], 6
push 0x10236f70
push eax
call fcn.10082bb0
add esp, 8
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.1004eea0
add esp, 8
push str.__rename_error_
push eax
call fcn.10082bb0
add esp, 8
mov edi, eax
cmp dword [ebp - 0x258], 1
je 0x100a88b4
mov ecx, dword [ebp - 0x260]
jmp 0x100a88cf
mov eax, dword [ebp - 0x25c]
xor edx, edx
mov ecx, 0x1ffff7
div ecx
imul ecx, edx, 0x3e8
add ecx, dword [ebp - 0x260]
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x100974e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x39c]
call fcn.10082970
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 7
jbe 0x100a8903
mov eax, dword [eax]
push eax
call fcn.100a2540
add esp, 4
lea ecx, [ebp - 0x250]
call fcn.100895a0
lea eax, [ebp - 0x220]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x39c]
call fcn.10082f70
lea ecx, [ebp - 0x304]
call fcn.10082f70
jmp 0x100a895e
lea ecx, [ebp - 0x250]
call fcn.10089a70
lea ecx, [ebp - 0x304]
call fcn.10082f70
jmp 0x100a895e
xor edi, edi
jmp 0x100a895e
test esi, esi
je 0x100a8965
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x100a8a65
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100a89a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a89a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
jmp 0x100a8a65
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret