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

Disassembly:
push 0xffffffffffffffff
push 0x468422
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
mov eax, dword [esi]
call dword [eax + 0x24]
xor ebp, ebp
cmp ax, bp
jne 0x45b720
mov ebx, dword [esp + 0x338]
lea ecx, [esp + 0x48]
push ebx
call fcn.00405dc0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x30]
push ecx
push 0xc
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x33c], ebp
mov dword [esp + 0x38], ebp
call fcn.00406120
mov edi, eax
cmp di, bp
jne 0x45b709
mov al, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
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 ecx, [esp + 0x224]
mov byte [esp + 0x330], 1
push ecx
push 0x104
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x120]
lea eax, [esp + 0x224]
push edx
push ebp
push 0x4895b0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x45b60f
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov al, byte [esp + 0x4c]
mov byte [esp + 0x330], 2
test al, al
je 0x45b63e
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x45b62d
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]
push ebx
lea ecx, [esp + 0x4c]
call fcn.00406540
mov edi, eax
test di, di
jne 0x45b6b8
push 2
push ebx
mov ecx, esi
call fcn.0045b740
mov edi, eax
test di, di
jne 0x45b6b8
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push 0
mov edi, 0x3f2
call ebx
add esp, 4
mov ebp, eax
mov edx, dword [esi]
lea eax, [esp + 0x12]
push eax
push 0x3fb
mov ecx, esi
call dword [edx + 0x134]
test ax, ax
jne 0x45b692
mov ax, word [esp + 0x12]
cmp ax, 0x63
je 0x45b6a2
cmp ax, 1
je 0x45b692
test ax, ax
jne 0x45b6a9
push 0
call ebx
sub eax, ebp
add esp, 4
cmp eax, 2
jge 0x45b6b8
jmp 0x45b663
mov edi, 0x437
jmp 0x45b6b8
mov edx, dword [esi]
xor edi, edi
push 1
push edi
mov ecx, esi
call dword [edx + 0x138]
mov al, byte [esp + 0x24]
test al, al
jne 0x45b6d8
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
jne 0x45b6cf
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]
jmp 0x45b6da
xor esi, esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x45b6fd
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x45b6f4
cmp al, 0xff
je 0x45b6f4
dec al
mov byte [ecx], al
jmp 0x45b6fd
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x330], 0xffffffff
call fcn.00405f40
mov ax, di
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x324
ret 0x14