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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467b49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x2c]
mov dword [ebp - 0x18], vtable.CTakeMutex.0
test esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 1
je 0x453be8
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov cl, byte [ebp + 0xb]
push 0
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push edx
push 0x104
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x2a4]
push eax
push 0
push 0x4895b0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [ebp - 0x1a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1a0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
test eax, eax
jne 0x453c6c
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [ebp + 8], ecx
jmp 0x453c6f
mov dword [ebp + 8], eax
cmp word [ebp + 0xc], 0x2010
je 0x453c81
mov edi, 0x80070057
jmp 0x453d0e
mov edx, dword [ebp + 8]
push 0x80
push 0x8001
push edx
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x453cd0
lea eax, [ebp - 0x9c]
push 0x409
push eax
call fcn.00401020
add esp, 8
lea ecx, [ebp - 0x9c]
push 0x80040609
push 0x47c6d8
push ecx
push 0x47c718
call fcn.00458c80
jmp 0x453d02
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0x30]
push edx
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jl 0x453d02
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__write]
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x10
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov edi, eax
test edi, edi
jge 0x453d57
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 4], 0
test cl, cl
jne 0x453d29
test eax, eax
jne 0x453d22
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x10]
dec ecx
test esi, esi
mov dword [ebp - 0x10], ecx
je 0x453d4b
mov edx, dword [esi + 4]
push edx
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x453d3a
jmp 0x453e56
mov eax, dword [ebx + 0x34]
mov byte [ebx + 0x38], 0
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x38], eax
lea eax, [ebx - 8]
mov edi, 0x467
test ecx, ecx
mov dword [ebp - 0x34], eax
je 0x453d97
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
push 0x44fea0
push 0
push 0
push eax
call dword [edx + 0xbc]
mov edi, eax
test di, di
jne 0x453d97
xor edi, edi
jmp 0x453e0c
lea ecx, [ebp - 0x9c]
push edi
push ecx
call fcn.00401020
lea edx, [ebp - 0x9c]
add esp, 8
test edx, edx
jne 0x453db5
xor eax, eax
jmp 0x453de4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00465990
mov eax, esp
push 0
lea ecx, [ebp - 0x9c]
push esi
push ecx
push eax
call fcn.0044d230
movsx edx, di
add edx, 0x200
push 0
or edx, 0x80040000
push edx
push 0x47c6d8
push 0
push 0
push eax
push 0x47c718
call fcn.00458ac0
mov edi, eax
mov al, byte [ebp - 0x1c]
mov byte [ebp - 4], 0
test al, al
jne 0x453e2a
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x453e23
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
dec edx
test eax, eax
mov dword [ebp - 0x10], edx
je 0x453e4f
mov eax, dword [eax + 4]
push eax
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x453e3b
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2b0]
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14