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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467fd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
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 0x458708
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 - 0x29c]
mov byte [ebp - 4], 1
push eax
push 0x104
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x198]
lea edx, [ebp - 0x29c]
push ecx
push 0
push 0x4895b0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [ebp - 0x198]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x198]
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 0x458789
mov ebx, eax
cmp word [ebp + 0xc], 0x2010
je 0x45879b
mov edi, 0x80070057
jmp 0x458825
push 0x80
push 0x8001
push ebx
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4587e7
lea ecx, [ebp - 0x94]
push 0x409
push ecx
call fcn.00401020
add esp, 8
lea edx, [ebp - 0x94]
push 0x80040609
push 0x47c6d8
push edx
push 0x47c718
call fcn.00458c80
jmp 0x458819
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jl 0x458819
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 0x45886e
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 4], 0
test cl, cl
jne 0x458840
test eax, eax
jne 0x458839
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 0x458862
mov eax, dword [esi + 4]
push eax
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x458851
jmp 0x458954
mov eax, dword [ebp + 8]
mov edi, 0x467
mov byte [eax + 0x38], 0
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x458895
mov edx, dword [ecx]
push ebx
call dword [edx + 0xcc]
mov edi, eax
test di, di
jne 0x458895
xor edi, edi
jmp 0x45890a
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00401020
lea ecx, [ebp - 0x94]
add esp, 8
test ecx, ecx
jne 0x4588b3
xor eax, eax
jmp 0x4588e2
lea edx, [ebp - 0x94]
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 - 0x94]
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 0x458928
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x458921
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 0x45894d
mov eax, dword [eax + 4]
push eax
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x458939
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2a8]
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14