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

Disassembly:
push 0xffffffffffffffff
push 0x4699f2
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4f4]
mov ecx, dword [esp + 0x4f8]
mov esi, dword [esp + 0x4dc]
mov ebp, dword [esp + 0x4e0]
push 0x103
xor edi, edi
lea edx, [esp + 0x3c9]
push edi
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x3d0], 0
call fcn.00449a70
mov eax, dword [esp + 0x4f8]
mov ecx, dword [esp + 0x4f4]
mov edx, dword [esp + 0x4f0]
add esp, 0xc
push eax
push ecx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x2c], edi
call fcn.00415d60
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x4d8], edi
call fcn.00416680
push 0xff
lea eax, [esp + 0x2c9]
push edi
push eax
mov byte [esp + 0x4e0], 1
mov byte [esp + 0x2d0], 0
call fcn.00449a70
add esp, 0xc
cmp esi, edi
je 0x417b22
cmp ebp, edi
je 0x417b22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4177f6
test al, 0x10
je 0x4177f6
push 0x103
lea ecx, [esp + 0x1c5]
push edi
push ecx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x1cc], 0
call fcn.00449a70
add esp, 0xc
push esi
lea edx, [esp + 0x1c4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x1c0]
lea edi, [esp + 0x1c0]
push eax
dec edi
call ebx
cmp byte [eax + edi], 0x5c
jne 0x417785
lea ecx, [esp + 0x1c0]
push ecx
call ebx
mov byte [eax + edi], 0
lea edx, [esp + 0x1c0]
push 0x5c
push edx
call fcn.0044a62d
add esp, 8
test eax, eax
je 0x4177b0
lea eax, [esp + 0x1c0]
push 0x5c
push eax
call fcn.0044a62d
add esp, 8
mov byte [eax], 0
push 1
push ecx
lea edx, [esp + 0x1c8]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00403c70
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov byte [esp + 0x4e8], 2
call fcn.00403c70
lea ecx, [esp + 0x58]
mov byte [esp + 0x4e4], 1
call fcn.00416d40
jmp 0x41788d
push esi
lea ecx, [esp + 0x18]
call fcn.00403c70
mov bl, 3
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d8], bl
call fcn.00403c70
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x4f4], 4
call fcn.00416a40
lea ecx, [esp + 0x3c]
call fcn.00416b60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4d4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4d4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41788d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x3c4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4178b0
sub eax, edx
cmp byte [esp + eax + 0x3c3], 0x5c
je 0x4178d6
push 0x46d8b4
lea edx, [esp + 0x3c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x3c8]
push eax
push str._s_x08.tmp
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebp
lea ecx, [esp + 0x4c]
call fcn.00416010
test eax, eax
je 0x417b22
mov ebp, dword [esp + 0x30]
mov esi, 1
mov dword [esp + 0x18], esi
test ebp, ebp
je 0x417af0
jmp 0x417920
push 0x103
mov eax, ebp
mov ebp, dword [ebp]
lea ecx, [esp + 0x1c5]
push 0
push ecx
lea edi, [eax + 8]
mov dword [esp + 0x20], 0
mov byte [esp + 0x1cc], 0
call fcn.00449a70
mov eax, dword [edi]
push 0x100
lea edx, [esp + 0x2d4]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.0044c4cc
lea eax, [esp + 0x2f4]
push 0x100
push eax
call fcn.0044d01c
add esp, 0x38
push str..CDG
lea ecx, [esp + 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x417aa4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x417aa4
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x417aa4
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x1c4]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x417ae8
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
lea esi, [edi + 4]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004035d0
push eax
mov ecx, esi
mov byte [esp + 0x4d8], 5
call fcn.004037f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x4d4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417a27
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 + 0x2c8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.0044c4cc
lea edx, [esp + 0x2e8]
push 0x100
push edx
call fcn.0044d1fd
add esp, 0x2c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call fcn.0044d1fd
add esp, 8
push ebx
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x417a95
push 0x46db7c
mov ecx, esi
call fcn.0040e550
push ebx
mov ecx, esi
call fcn.00403c30
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, edi
call fcn.004039f0
mov edx, dword [esp + 0x20]
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 + 0x58]
call fcn.00415e40
test eax, eax
jne 0x417acb
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
je 0x417ae0
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x417af0
test ebp, ebp
jne 0x417920
lea ecx, [esp + 0x48]
call fcn.00415da0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 0
call fcn.00416b30
lea ecx, [esp + 0x48]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.00415fb0
mov eax, esi
jmp 0x417b49
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 0
call fcn.00416b30
lea ecx, [esp + 0x48]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.00415fb0
xor eax, eax
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.00449ba6
add esp, 0x4c4
ret