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

Disassembly:
push 0xffffffffffffffff
push 0x4dcab4
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x51f714]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f714]
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.00458090
add esp, 4
mov dword [esp + 0x318], 1
mov esi, 8
cmp dword [ebp + 0x18], esi
jb 0x4583e7
mov ebp, dword [ebp + 4]
jmp 0x4583ea
add ebp, 4
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x458401
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.004af01d
add esp, 4
push eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x80]
call fcn.004040ed
mov byte [esp + 0x318], 2
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00457a30
mov byte [esp + 0x318], 4
cmp dword [esp + 0x90], esi
jb 0x458496
mov edx, dword [esp + 0x7c]
push edx
call fcn.004ad670
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 0x45853c
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.00403e21
mov byte [esp + 0x318], 4
mov dword [esp + 0x1c], 1
mov byte [esp + 0x318], 1
cmp dword [esp + 0x74], esi
jb 0x4584fe
mov eax, dword [esp + 0x60]
push eax
call fcn.004ad670
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 0x45852d
mov edx, dword [esp + 0x98]
push edx
call fcn.004ad670
add esp, 4
xor eax, eax
mov word [esp + 0x98], ax
jmp 0x458871
push eax
lea esi, [esp + 0x60]
call fcn.00457b40
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x458559
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4587f2
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x5c]
call fcn.00457ab0
mov byte [esp + 0x318], 0xb
mov edx, dword [esp + 0x14]
push 3
push edi
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.0040cf96
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.0040cf96
mov byte [esp + 0x318], 0xd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.0044e000
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.0044dce0
add esp, 4
mov eax, esi
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004089aa
add esp, 0xc
mov byte [esp + 0x318], 0xf
mov ecx, eax
lea esi, [esp + 0x94]
call fcn.00458f40
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004579c0
mov byte [esp + 0x318], 0x10
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x68]
call fcn.00403e21
mov byte [esp + 0x318], 0xf
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x45867e
mov eax, dword [esp + 0x28]
push eax
call fcn.004ad670
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 0x4586a8
mov edx, dword [esp + 0x44]
push edx
call fcn.004ad670
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 0x4586f0
push 0x4ec284
call fcn.004af01d
add esp, 4
push eax
mov eax, 0x4ec284
lea esi, [esp + 0x60]
call fcn.00408558
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
push edx
mov ecx, esi
call fcn.0040958d
mov esi, 8
mov byte [esp + 0x318], 0xd
cmp dword [esp + 0x90], esi
jb 0x45870e
mov eax, dword [esp + 0x7c]
push eax
call fcn.004ad670
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 0x458731
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4585e0
mov byte [esp + 0x318], 0xc
cmp dword [esp + 0x100], esi
jb 0x458761
mov edx, dword [esp + 0xec]
push edx
call fcn.004ad670
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 0x45879a
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004ad670
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 0x4587d3
mov eax, dword [esp + 0xd0]
push eax
call fcn.004ad670
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.00403e21
mov byte [esp + 0x318], 4
mov dword [esp + 0x1c], 1
mov byte [esp + 0x318], 1
cmp dword [esp + 0x74], esi
jb 0x458838
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004ad670
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 0x458867
mov eax, dword [esp + 0x98]
push eax
call fcn.004ad670
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.004ad67b
add esp, 0x308
ret