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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502f80
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x569078]
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.00465e10
mov dword [ebp - 4], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00467040
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], 8
jb 0x4661c3
mov ecx, dword [ebx]
jmp 0x4661c5
mov ecx, ebx
cmp dword [eax + 0x14], 8
jb 0x4661cd
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 0x466244
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x466200
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x46623b
test byte [ebp - 0x248], 0x1f
je 0x466217
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466223
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x46622f
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466239
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x4662a4
lea eax, [ebp - 0x218]
push eax
call fcn.004d163d
add esp, 4
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00407b30
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004656c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2f8]
cmp dword [eax + 0x10], 0
jne 0x466458
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 0x46631e
mov eax, dword [ebp - 0x220]
add eax, 1
je 0x466330
add eax, eax
push eax
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004ccf50
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x466330
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 0x4663cd
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x466389
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x4663c4
test byte [ebp - 0x230], 0x1f
je 0x4663a0
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4663ac
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x4663b8
call fcn.004d1161
cmp ecx, 0x23
jbe 0x4663c2
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x4669e6
mov ecx, dword [ebp - 0x260]
inc eax
cmp eax, 0x7fffffff
jbe 0x46640f
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x46644a
test byte [ebp - 0x260], 0x1f
je 0x466426
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x466432
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x46643e
call fcn.004d1161
cmp ecx, 0x23
jbe 0x466448
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
jmp 0x4669e6
push eax
lea ecx, [ebp - 0x230]
call fcn.004658b0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00467040
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x466482
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 0x4664f3
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x248]
cmp eax, 0x7fffffff
jbe 0x4664af
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x4664ea
test byte [ebp - 0x248], 0x1f
je 0x4664c6
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4664d2
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x4664de
call fcn.004d1161
cmp ecx, 0x23
jbe 0x4664e8
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x466959
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x230]
call fcn.00465800
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x248]
push 3
push 0
push eax
mov ecx, ebx
call fcn.00419539
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x290]
push 0xffffffffffffffff
push dword [ebp - 0x238]
lea ecx, [ebp - 0x2f0]
push eax
call fcn.00419539
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2f4]
lea ecx, [ebp - 0x290]
call fcn.0045d950
mov ebx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x2f4]
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 - 0x2f4], eax
mov ecx, eax
call fcn.0045d7f0
add esp, 4
lea eax, [ebp - 0x278]
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.00451321
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00467400
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x230]
push eax
call fcn.0045d0d0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x294]
cmp eax, 8
jb 0x46666b
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x7fffffff
ja 0x4661fb
add eax, eax
cmp eax, 0x1000
jb 0x466662
test cl, 0x1f
jne 0x4661fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4661fb
sub ecx, eax
cmp ecx, 4
jb 0x4661fb
cmp ecx, 0x23
ja 0x4661fb
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x4666e5
mov ecx, dword [ebp - 0x2c0]
inc eax
cmp eax, 0x7fffffff
ja 0x4661fb
add eax, eax
cmp eax, 0x1000
jb 0x4666dc
test cl, 0x1f
jne 0x4661fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4661fb
sub ecx, eax
cmp ecx, 4
jb 0x4661fb
cmp ecx, 0x23
ja 0x4661fb
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x466735
push 0x525f78
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x230]
push eax
push 0x525f78
call fcn.0040c6b2
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x230]
call fcn.0040c9b1
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x466792
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0x7fffffff
ja 0x4661fb
add eax, eax
cmp eax, 0x1000
jb 0x466789
test cl, 0x1f
jne 0x4661fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4661fb
sub ecx, eax
cmp ecx, 4
jb 0x4661fb
cmp ecx, 0x23
ja 0x4661fb
mov ecx, eax
push ecx
call fcn.004cb6d5
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.00467040
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x4667cd
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 0x466835
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x2d8]
cmp eax, 0x7fffffff
ja 0x4661fb
add eax, eax
cmp eax, 0x1000
jb 0x46682c
test cl, 0x1f
jne 0x4661fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4661fb
sub ecx, eax
cmp ecx, 4
jb 0x4661fb
cmp ecx, 0x23
ja 0x4661fb
mov ecx, eax
push ecx
call fcn.004cb6d5
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
test esi, esi
jne 0x466579
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x4668c0
mov ecx, dword [ebp - 0x290]
inc eax
cmp eax, 0x7fffffff
jbe 0x46687c
call fcn.004d1161
add eax, eax
cmp eax, 0x1000
jb 0x4668b7
test byte [ebp - 0x290], 0x1f
je 0x466893
call fcn.004d1161
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x46689f
call fcn.004d1161
sub ecx, eax
cmp ecx, 4
jae 0x4668ab
call fcn.004d1161
cmp ecx, 0x23
jbe 0x4668b5
call fcn.004d1161
mov ecx, eax
push ecx
call fcn.004cb6d5
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 0x4668fe
inc eax
push 2
push eax
push dword [ebp - 0x248]
call fcn.00404833
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 0x46693c
inc eax
push 2
push eax
push dword [ebp - 0x2f0]
call fcn.00404833
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.0040c909
mov byte [ebp - 4], 4
mov dword [ebp - 0x2fc], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4669a9
inc eax
push 2
push eax
push dword [ebp - 0x230]
call fcn.00404833
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 0x4669e6
push 2
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00404833
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.004cb6da
mov esp, ebp
pop ebp
ret