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

Disassembly:
push 0xffffffffffffffff
push 0x469a62
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4e4]
mov ecx, dword [esp + 0x4f8]
mov edx, dword [esp + 0x4fc]
mov esi, dword [esp + 0x4e0]
push 0x103
mov dword [esp + 0x20], eax
xor edi, edi
lea eax, [esp + 0x3cd]
push edi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov byte [esp + 0x3d4], 0
call fcn.00449a70
mov ecx, dword [esp + 0x4f8]
mov edx, dword [esp + 0x4f4]
add esp, 0xc
push edi
push ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], edi
call fcn.00415d60
push 0xa
lea ecx, [esp + 0x34]
mov dword [esp + 0x4dc], edi
call fcn.00416680
push 0xff
lea eax, [esp + 0x2cd]
push edi
push eax
mov byte [esp + 0x4e4], 1
mov byte [esp + 0x2d4], 0
call fcn.00449a70
add esp, 0xc
cmp esi, edi
jne 0x417c89
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d8], 0
call fcn.00416b30
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.00415fb0
xor eax, eax
jmp 0x418072
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417d75
test al, 0x10
je 0x417d75
push 0x103
lea ecx, [esp + 0x1c9]
push edi
push ecx
mov dword [esp + 0x30], 1
mov byte [esp + 0x1d0], 0
call fcn.00449a70
add esp, 0xc
push esi
lea edx, [esp + 0x1c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x1c4]
lea edi, [esp + 0x1c4]
push eax
dec edi
call ebp
cmp byte [eax + edi], 0x5c
jne 0x417d02
lea ecx, [esp + 0x1c4]
push ecx
call ebp
mov byte [eax + edi], 0
lea edx, [esp + 0x1c4]
push 0x5c
push edx
call fcn.0044a62d
add esp, 8
test eax, eax
je 0x417d2d
lea eax, [esp + 0x1c4]
push 0x5c
push eax
call fcn.0044a62d
add esp, 8
mov byte [eax], 0
push 1
push ecx
lea edx, [esp + 0x1cc]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00403c70
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov byte [esp + 0x4ec], 2
call fcn.00403c70
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4e8], 1
call fcn.00416d40
xor edi, edi
jmp 0x417e0c
push esi
lea ecx, [esp + 0x1c]
call fcn.00403c70
mov bl, 3
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x4dc], bl
call fcn.00403c70
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
push edi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4f8], 4
call fcn.00416a40
lea ecx, [esp + 0x40]
call fcn.00416b60
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417de4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x3c8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e30
sub eax, edx
cmp byte [esp + eax + 0x3c7], 0x5c
je 0x417e56
push 0x46d8b4
lea edx, [esp + 0x3cc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.00416230
test eax, eax
je 0x417c5d
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
cmp ebp, edi
je 0x418036
push 0x103
mov eax, ebp
mov ebp, dword [ebp]
lea ecx, [esp + 0x1c9]
push 0
push ecx
lea edi, [eax + 8]
mov dword [esp + 0x28], 0
mov byte [esp + 0x1d0], 0
call fcn.00449a70
mov eax, dword [edi]
push 0x100
lea edx, [esp + 0x2d8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.0044c4cc
lea eax, [esp + 0x2f8]
push 0x100
push eax
call fcn.0044d01c
add esp, 0x38
push str..CDG
lea ecx, [esp + 0x2cc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x417fe5
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 1
test ecx, ecx
je 0x417fe5
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x417fe5
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x1c8]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x41802c
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
lea esi, [edi + 4]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004035d0
push eax
mov ecx, esi
mov byte [esp + 0x4dc], 5
call fcn.004037f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x4d8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0x2cc]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.0044c4cc
add esp, 0x24
push ebx
lea edx, [esp + 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x417fd6
push 0x46db7c
mov ecx, esi
call fcn.0040e550
push ebx
mov ecx, esi
call fcn.00403c30
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.004039f0
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
xor edx, edx
cmp byte [edi + 8], dl
setne dl
dec edx
push edx
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00415e40
test eax, eax
jne 0x41800c
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
je 0x418021
lea eax, [esp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x18], 0
je 0x418034
inc dword [esp + 0x14]
test ebp, ebp
jne 0x417e84
xor edi, edi
lea ecx, [esp + 0x4c]
call fcn.00415da0
cmp dword [esp + 0x14], edi
jne 0x418049
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d8], 0
call fcn.00416b30
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.00415fb0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00449ba6
add esp, 0x4c8
ret