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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505610
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x2f4], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x2fc], 0
call fcn.00465ba0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00466ec0
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], 8
jb 0x465f53
mov ecx, dword [ebx]
jmp 0x465f55
mov ecx, ebx
cmp dword [eax + 0x14], 8
jb 0x465f5d
mov eax, dword [eax]
lea edx, [ebp - 0x218]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x465fd4
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x465f90
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x465fcb
test byte [ebp - 0x248], 0x1f
je 0x465fa7
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x465fb3
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x465fbf
call fcn.004d3911
cmp ecx, 0x23
jbe 0x465fc9
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [ebp - 0x2f4], esp
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x218], ax
je 0x466034
lea eax, [ebp - 0x218]
push eax
call fcn.004d3ded
add esp, 4
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00407ba8
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00465390
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2f8]
cmp dword [eax + 0x10], 0
jne 0x4661e8
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jae 0x4660ae
mov eax, dword [ebp - 0x220]
add eax, 1
je 0x4660c0
add eax, eax
push eax
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004cf700
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x4660c0
mov eax, dword [ebp - 0x230]
mov dword [edi], eax
mov dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x220]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x2fc], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x46615d
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x466119
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x466154
test byte [ebp - 0x230], 0x1f
je 0x466130
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46613c
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466148
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466152
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x46678e
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x46619f
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x4661da
test byte [ebp - 0x260], 0x1f
je 0x4661b6
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4661c2
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x4661ce
call fcn.004d3911
cmp ecx, 0x23
jbe 0x4661d8
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
jmp 0x46678e
push eax
lea ecx, [ebp - 0x230]
call fcn.00465640
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00466ec0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x466212
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x466283
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x248]
cmp eax, 0x7fffffff
jbe 0x46623f
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x46627a
test byte [ebp - 0x248], 0x1f
je 0x466256
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466262
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x46626e
call fcn.004d3911
cmp ecx, 0x23
jbe 0x466278
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
test esi, esi
je 0x466701
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x230]
call fcn.00465590
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x248]
push 3
push 0
push eax
mov ecx, ebx
call fcn.004195c1
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x290]
push 0xffffffffffffffff
push dword [ebp - 0x238]
lea ecx, [ebp - 0x2f0]
push eax
call fcn.004195c1
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2f4]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x2f4], 0
call fcn.0045d500
mov eax, dword [ebp - 0x2f4]
mov ebx, dword [ebp - 0x2f8]
nop dword [eax]
xor ecx, ecx
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], cx
mov byte [ebp - 4], 0xf
inc eax
push ecx
lea edx, [ebp - 0x278]
mov dword [ebp - 0x2f8], eax
mov ecx, eax
call fcn.0045d3a0
add esp, 4
lea eax, [ebp - 0x278]
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.0045160e
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004675b0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x230]
push eax
call fcn.0045cc80
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x294]
cmp eax, 8
jb 0x46640c
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x7fffffff
ja 0x465f8b
add eax, eax
cmp eax, 0x1000
jb 0x466403
test cl, 0x1f
jne 0x465f8b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x465f8b
sub ecx, eax
cmp ecx, 4
jb 0x465f8b
cmp ecx, 0x23
ja 0x465f8b
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x466486
mov ecx, dword [ebp - 0x2c0]
inc eax
cmp eax, 0x7fffffff
ja 0x465f8b
add eax, eax
cmp eax, 0x1000
jb 0x46647d
test cl, 0x1f
jne 0x465f8b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x465f8b
sub ecx, eax
cmp ecx, 4
jb 0x465f8b
cmp ecx, 0x23
ja 0x465f8b
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp dword [ebx + 0x10], eax
je 0x4664d6
push 0x529030
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x230]
push eax
push 0x529030
call fcn.004090dc
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x230]
call fcn.004092fc
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x466533
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0x7fffffff
ja 0x465f8b
add eax, eax
cmp eax, 0x1000
jb 0x46652a
test cl, 0x1f
jne 0x465f8b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x465f8b
sub ecx, eax
cmp ecx, 4
jb 0x465f8b
cmp ecx, 0x23
ja 0x465f8b
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x268], 0
push eax
call fcn.00466ec0
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x46656e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2c4]
cmp ecx, 8
jb 0x4665d6
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x2d8]
cmp eax, 0x7fffffff
ja 0x465f8b
add eax, eax
cmp eax, 0x1000
jb 0x4665cd
test cl, 0x1f
jne 0x465f8b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x465f8b
sub ecx, eax
cmp ecx, 4
jb 0x465f8b
cmp ecx, 0x23
ja 0x465f8b
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
test esi, esi
je 0x466602
mov eax, dword [ebp - 0x2f8]
jmp 0x466320
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x466668
mov ecx, dword [ebp - 0x290]
inc eax
cmp eax, 0x7fffffff
jbe 0x466624
call fcn.004d3911
add eax, eax
cmp eax, 0x1000
jb 0x46665f
test byte [ebp - 0x290], 0x1f
je 0x46663b
call fcn.004d3911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466647
call fcn.004d3911
sub ecx, eax
cmp ecx, 4
jae 0x466653
call fcn.004d3911
cmp ecx, 0x23
jbe 0x46665d
call fcn.004d3911
mov ecx, eax
push ecx
call fcn.004cde62
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4666a6
inc eax
push 2
push eax
push dword [ebp - 0x248]
call fcn.00404883
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2dc]
cmp eax, 8
jb 0x4666e4
inc eax
push 2
push eax
push dword [ebp - 0x2f0]
call fcn.00404883
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2dc], 7
mov dword [ebp - 0x2e0], 0
mov word [ebp - 0x2f0], ax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x230]
push eax
call fcn.0040ca05
mov byte [ebp - 4], 4
mov dword [ebp - 0x2fc], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x466751
inc eax
push 2
push eax
push dword [ebp - 0x230]
call fcn.00404883
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x46678e
push 2
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00404883
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], eax
mov word [ebp - 0x260], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cde67
mov esp, ebp
pop ebp
ret