Function at 0x416920
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5908dd
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
call fcn.00402240
mov dword [ebp - 4], 0
cmp byte [esi], 0
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
jne 0x4169a7
xor ecx, ecx
jmp 0x4169b9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4169b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x42c]
call fcn.00402140
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.00402d20
sub esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x478]
mov byte [ebp - 0x478], 0x5c
lea ecx, [ebp - 0x42c]
push eax
call fcn.00403480
test eax, eax
jns 0x416a1f
sub esp, 8
mov byte [ebp - 0x478], 0x2f
lea eax, [ebp - 0x478]
lea ecx, [ebp - 0x42c]
push eax
call fcn.00403480
test eax, eax
js 0x416e47
push eax
push 0
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403280
mov edi, eax
lea eax, [ebp - 0x42c]
cmp eax, edi
je 0x416a85
mov eax, dword [ebp - 0x418]
cmp eax, 0x10
jb 0x416a5e
inc eax
lea ecx, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
call fcn.004023e0
push edi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
call fcn.00402370
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x460]
cmp eax, 0x10
jb 0x416aa7
inc eax
lea ecx, [ebp - 0x474]
push eax
push dword [ebp - 0x474]
call fcn.004023e0
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
push 0
cmovae eax, dword [ebp - 0x42c]
push eax
call fcn.0057242c
add esp, 8
test eax, eax
je 0x416afe
cmp dword [ebp - 0x418], 0x10
lea edi, [ebp - 0x42c]
push 0
cmovae edi, dword [ebp - 0x42c]
push edi
call fcn.0057242c
push 0
push edi
call fcn.0057242c
add esp, 0x10
test eax, eax
je 0x416afe
push edi
call fcn.005724ef
add esp, 4
cmp dword [ebp - 0x418], 0x10
lea ecx, [ebp - 0x414]
push ecx
push 0
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push str.UPGTMP
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x416b74
mov eax, dword [0x605350]
test eax, eax
jne 0x416b5c
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x416b55
mov ecx, eax
call fcn.004048d0
jmp 0x416b57
xor eax, eax
mov dword [0x605350], eax
push esi
push str.GetTempFileName__s_failed_n
push 2
push eax
call fcn.00404c70
add esp, 0x10
xor bl, bl
jmp 0x416c7a
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x414]
push 1
push eax
push esi
call edi
test eax, eax
jne 0x416be5
mov edi, dword [0x605350]
test edi, edi
jne 0x416bbf
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x416bb7
mov ecx, eax
call fcn.004048d0
mov edi, eax
jmp 0x416bb9
xor edi, edi
mov dword [0x605350], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 0x5d7bf8
push 2
push edi
call fcn.00404c70
add esp, 0x18
xor bl, bl
jmp 0x416c7a
cmp dword [ebp - 0x430], 0x10
lea eax, [ebp - 0x444]
push 1
cmovae eax, dword [ebp - 0x444]
push esi
push eax
call edi
test eax, eax
jne 0x416c6b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x416d2a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x416c49
test al, 1
je 0x416c49
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416c49
push esi
push str._COMEBACK_:set__s_not_readonly_failed_n
push 2
call fcn.004049c0
push eax
call fcn.00404c70
add esp, 0x10
cmp dword [ebp - 0x430], 0x10
lea eax, [ebp - 0x444]
push 1
cmovae eax, dword [ebp - 0x444]
push esi
push eax
call edi
test eax, eax
je 0x416dcc
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call edi
mov bl, 1
mov eax, dword [ebp - 0x448]
cmp eax, 0x10
jb 0x416c98
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.004023e0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x448], 0xf
mov dword [ebp - 0x44c], 0
mov byte [ebp - 0x45c], 0
cmp eax, 0x10
jb 0x416cd1
inc eax
lea ecx, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
call fcn.004023e0
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
cmp ecx, 0x10
jb 0x416d0a
inc ecx
push ecx
push dword [ebp - 0x444]
lea ecx, [ebp - 0x444]
call fcn.004023e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x11
jne 0x416db5
cmp dword [ebp - 0x430], 0x10
lea eax, [ebp - 0x444]
push 3
cmovae eax, dword [ebp - 0x444]
push esi
push eax
call edi
test eax, eax
jne 0x416c6b
call ebx
cmp eax, 5
jne 0x416dcc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x416d91
test al, 1
je 0x416d91
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x416d91
push esi
push str._COMEBACK_:set__s_not_readonly_failed_n
push 2
call fcn.004049c0
push eax
call fcn.00404c70
add esp, 0x10
cmp dword [ebp - 0x430], 0x10
lea eax, [ebp - 0x444]
push 3
cmovae eax, dword [ebp - 0x444]
push esi
push eax
call edi
test eax, eax
jne 0x416c6b
jmp 0x416dcc
push eax
push esi
push str._COMEBACK_:MoveFileEx__s__d_n
push 2
call fcn.004049c0
push eax
call fcn.00404c70
add esp, 0x14
push 0
push esi
call fcn.00572444
add esp, 8
test eax, eax
jne 0x416de4
push esi
call fcn.005723df
add esp, 4
push 1
push esi
lea eax, [ebp - 0x414]
push eax
call edi
cmp dword [ebp - 0x430], 0x10
lea edi, [ebp - 0x444]
mov eax, dword [0x605350]
cmovae edi, dword [ebp - 0x444]
test eax, eax
jne 0x416e35
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x416e2e
mov ecx, eax
call fcn.004048d0
jmp 0x416e30
xor eax, eax
mov dword [0x605350], eax
push esi
push edi
push 0x5d7c40
push 2
push eax
call fcn.00404c70
add esp, 0x14
xor bl, bl
jmp 0x416c7a