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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467d99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 0x2c]
mov dword [ebp - 0x18], vtable.CTakeMutex.0
test esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 1
je 0x456b48
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov byte [ebp - 0x2c], dl
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 eax, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push eax
push 0x104
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x1a0]
lea edx, [ebp - 0x2a4]
push ecx
push 0
push 0x4895b0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [ebp - 0x1a0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x1a0]
push ecx
push eax
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 ebx, 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]
test eax, eax
mov byte [ebp - 4], 2
je 0x456bc9
mov ebx, eax
cmp word [ebp + 0xc], 0x2010
je 0x456bdb
mov edi, 0x80070057
jmp 0x456c65
push 0x80
push 0x8001
push ebx
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x456c27
lea ecx, [ebp - 0x9c]
push 0x409
push ecx
call fcn.00401020
add esp, 8
lea edx, [ebp - 0x9c]
push 0x80040609
push 0x47c6d8
push edx
push 0x47c718
call fcn.00458c80
jmp 0x456c59
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jl 0x456c59
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp - 0x30]
push ecx
push edx
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 0x456cae
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 4], 0
test cl, cl
jne 0x456c80
test eax, eax
jne 0x456c79
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 0x456ca2
mov eax, dword [esi + 4]
push eax
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x456c91
jmp 0x456dad
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x38], ecx
mov edi, 0x467
mov byte [eax + 0x38], 0
mov ecx, dword [eax + 0x3c]
lea edx, [eax - 8]
test ecx, ecx
mov dword [ebp - 0x34], edx
je 0x456cee
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
push 0x44fea0
push 0
push 0
push ebx
call dword [eax + 0xc0]
mov edi, eax
test di, di
jne 0x456cee
xor edi, edi
jmp 0x456d63
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00401020
lea ecx, [ebp - 0x9c]
add esp, 8
test ecx, ecx
jne 0x456d0c
xor eax, eax
jmp 0x456d3b
lea edx, [ebp - 0x9c]
push edx
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 0x456d81
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x456d7a
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 0x456da6
mov eax, dword [eax + 4]
push eax
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x456d92
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 0x18