Function at 0x45af00
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e1824
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, dword [esp + 0x324]
mov ebp, dword [esp + 0x320]
mov ebx, ecx
lea ecx, [esp + 0x94]
xor edi, edi
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.0045ac30
add esp, 4
mov dword [esp + 0x318], 1
mov esi, 8
cmp dword [ebp + 0x18], esi
jb 0x45af87
mov ebp, dword [ebp + 4]
jmp 0x45af8a
add ebp, 4
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x45afa1
lea eax, [esp + 0x98]
lea edx, [esp + 0x104]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x104]
xor ecx, ecx
mov ebp, 7
push edx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], edi
mov word [esp + 0x80], cx
call fcn.004b3310
add esp, 4
push eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x80]
call fcn.004042c6
mov byte [esp + 0x318], 2
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0045a5d0
mov byte [esp + 0x318], 4
cmp dword [esp + 0x90], esi
jb 0x45b036
mov edx, dword [esp + 0x7c]
push edx
call fcn.004b1963
add esp, 4
xor eax, eax
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
cmp dword [eax + 0x14], edi
jne 0x45b0dc
push 0xffffffffffffffff
xor ecx, ecx
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], edi
push edi
lea edx, [esp + 0x64]
mov word [ebx + 4], cx
push edx
mov ecx, ebx
call fcn.00403ffa
mov byte [esp + 0x318], 4
mov dword [esp + 0x1c], 1
mov byte [esp + 0x318], 1
cmp dword [esp + 0x74], esi
jb 0x45b09e
mov eax, dword [esp + 0x60]
push eax
call fcn.004b1963
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
mov dword [esp + 0x318], edi
cmp dword [esp + 0xac], esi
jb 0x45b0cd
mov edx, dword [esp + 0x98]
push edx
call fcn.004b1963
add esp, 4
xor eax, eax
mov word [esp + 0x98], ax
jmp 0x45b411
push eax
lea esi, [esp + 0x60]
call fcn.0045a6e0
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x45b0f9
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b392
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x5c]
call fcn.0045a650
mov byte [esp + 0x318], 0xb
mov edx, dword [esp + 0x14]
push 3
push edi
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.0040d824
mov byte [esp + 0x318], 0xc
mov eax, dword [esp + 0xc4]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0xd8]
push edx
call fcn.0040d824
mov byte [esp + 0x318], 0xd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.00451c40
mov ebx, dword [esp + 0x1c]
add esp, 8
lea ecx, [ecx]
xor edx, edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], dx
mov byte [esp + 0x318], 0xe
inc ebx
push ebx
lea esi, [esp + 0x7c]
call fcn.00451920
add esp, 4
mov eax, esi
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004091b5
add esp, 0xc
mov byte [esp + 0x318], 0xf
mov ecx, eax
lea esi, [esp + 0x94]
call fcn.0045bae0
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.0045a560
mov byte [esp + 0x318], 0x10
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x68]
call fcn.00403ffa
mov byte [esp + 0x318], 0xf
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x45b21e
mov eax, dword [esp + 0x28]
push eax
call fcn.004b1963
add esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
mov byte [esp + 0x318], 0xe
cmp dword [esp + 0x58], esi
jb 0x45b248
mov edx, dword [esp + 0x44]
push edx
call fcn.004b1963
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
cmp dword [ecx + 0x14], edi
je 0x45b290
push 0x4f03f4
call fcn.004b3310
add esp, 4
push eax
mov eax, 0x4f03f4
lea esi, [esp + 0x60]
call fcn.00408d63
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
push edx
mov ecx, esi
call fcn.00409db5
mov esi, 8
mov byte [esp + 0x318], 0xd
cmp dword [esp + 0x90], esi
jb 0x45b2ae
mov eax, dword [esp + 0x7c]
push eax
call fcn.004b1963
add esp, 4
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], cx
cmp dword [esp + 0x74], esi
jae 0x45b2d1
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45b180
mov byte [esp + 0x318], 0xc
cmp dword [esp + 0x100], esi
jb 0x45b301
mov edx, dword [esp + 0xec]
push edx
call fcn.004b1963
add esp, 4
xor eax, eax
mov dword [esp + 0x100], ebp
mov dword [esp + 0xfc], edi
mov word [esp + 0xec], ax
mov byte [esp + 0x318], 0xb
cmp dword [esp + 0xc8], esi
jb 0x45b33a
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004b1963
add esp, 4
xor edx, edx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], edi
mov word [esp + 0xb4], dx
mov byte [esp + 0x318], 4
cmp dword [esp + 0xe4], esi
jb 0x45b373
mov eax, dword [esp + 0xd0]
push eax
call fcn.004b1963
add esp, 4
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], edi
mov word [esp + 0xd0], cx
lea esi, [ecx + 8]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
xor edx, edx
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], edi
push eax
mov ecx, ebx
mov word [ebx + 4], dx
call fcn.00403ffa
mov byte [esp + 0x318], 4
mov dword [esp + 0x1c], 1
mov byte [esp + 0x318], 1
cmp dword [esp + 0x74], esi
jb 0x45b3d8
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004b1963
add esp, 4
xor edx, edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
mov dword [esp + 0x318], edi
cmp dword [esp + 0xac], esi
jb 0x45b407
mov eax, dword [esp + 0x98]
push eax
call fcn.004b1963
add esp, 4
xor ecx, ecx
mov word [esp + 0x98], cx
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], edi
mov eax, ebx
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.004b196e
add esp, 0x308
ret