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

Disassembly:
mov eax, 0x44bd3a
call fcn.00415350
sub esp, 0x234
mov eax, dword [0x4560a0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push 0x41
mov dword [ebp - 0x238], ecx
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
xor eax, eax
push 0x41
mov byte [ebp - 0x220], bl
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x118], bl
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
or dword [ebp - 0x234], 0xffffffff
push ebx
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], ebx
call esi
mov eax, dword [ebp - 0x238]
push dword [eax + 0x24]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov byte [ebp - 4], 1
call edi
test eax, eax
je 0x44665a
push ebx
lea eax, [ebp - 0x23c]
push eax
call esi
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x24]
push ebx
push ebx
push ebx
push ebx
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x22c], eax
call edi
push eax
push dword [ebp - 0x22c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 0x22c], eax
jne 0x4465a7
mov edi, 0x80070057
push ebx
jmp 0x4465db
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
lea eax, [ebp - 0x23c]
push eax
call esi
push ebx
lea eax, [ebp - 0x23c]
push eax
call esi
push eax
lea eax, [ebp - 0x230]
push eax
call esi
cmp dword [ebp - 0x230], ebx
push ebx
jne 0x4465fc
mov edi, 0x8007000e
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 1
call esi
cmp eax, ebx
je 0x4467b3
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4467b3
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x24]
push ebx
push dword [ebp - 0x22c]
mov dword [ebp - 0x228], eax
push dword [ebp - 0x230]
push eax
call edi
push eax
push dword [ebp - 0x228]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + eax], bl
push ebx
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 1
call esi
cmp eax, ebx
je 0x446652
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x230]
jmp 0x446676
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4466b5
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x118]
push ecx
push ebx
push 0x40c968
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4466b5
push ebx
push 0x100
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x234], eax
jne 0x4466df
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x4466ca
call edi
mov edi, eax
jmp 0x4467b3
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x4467b3
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x228], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x446700
push 1
mov ecx, eax
call fcn.00445b7e
jmp 0x446702
xor eax, eax
cmp eax, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], eax
je 0x44675c
push dword [ebp - 0x234]
mov ecx, eax
call fcn.00446ee1
mov edi, eax
cmp edi, ebx
jl 0x4467b3
or dword [ebp - 0x234], 0xffffffff
lea eax, [ebp - 0x118]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x446737
sub eax, edi
lea edi, [eax + 1]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
call esi
cmp dword [ebp - 0x224], ebx
jne 0x446763
mov edi, 0x8007000e
jmp 0x4467b3
cmp edi, 0x7fffffff
jbe 0x446772
mov eax, 0x80070057
jmp 0x446785
lea eax, [ebp - 0x118]
push eax
push edi
push dword [ebp - 0x224]
call fcn.00445b43
cmp eax, ebx
mov edi, eax
jl 0x4467b3
push ebx
lea eax, [ebp - 0x224]
push eax
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x118], bl
xor edi, edi
push dword [ebp - 0x224]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x240]
push eax
call fcn.00431393
cmp edi, ebx
pop ecx
pop ecx
jge 0x446859
push ebx
lea eax, [ebp + 8]
push eax
call esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
mov byte [ebp - 4], 4
je 0x446821
mov eax, ecx
lea edx, [eax + 1]
xor edi, edi
mov dword [ebp - 0x228], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4467f5
sub eax, dword [ebp - 0x228]
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
mov dword [ebp - 0x228], eax
jne 0x4468cf
mov edi, 0x80070057
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x24]
push 0x40c940
push eax
push edi
push 0xcd
push 0xfa2
call fcn.004185a0
add esp, 0x14
lea eax, [ebp + 8]
push ebx
push eax
mov byte [ebp - 4], 1
call esi
cmp eax, ebx
je 0x446859
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x234], 0xffffffff
je 0x44686e
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x118], bl
je 0x446883
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], bl
call esi
cmp eax, ebx
je 0x44689b
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
cmp eax, ebx
je 0x4468b4
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041519d
leave
ret 8
add eax, eax
mov dword [ebp - 0x22c], eax
add eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push eax
lea eax, [ebp + 8]
push eax
call esi
cmp dword [ebp + 8], ebx
jne 0x4468f7
mov edi, 0x8007000e
jmp 0x446821
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 0xc], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x446904
push dword [ebp - 0x228]
sub eax, dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x22c]
mov word [ecx + eax], bx
mov eax, dword [ebp - 0x238]
push dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
push ebx
jmp 0x446831