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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460e3c
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
push esi
mov ebx, ecx
mov edi, 0xf
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
call fcn.00401bb0
mov dword [esp + 0x498], esi
mov eax, ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov byte [esp + 0x34], 0
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401630
sub eax, esi
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.00401d40
mov edx, ebx
lea esi, [esp + 0x68]
mov byte [esp + 0x498], 1
call fcn.00410920
lea eax, [esp + 0x10]
mov byte [esp + 0x498], 2
push eax
lea edi, [esp + 0x34]
mov byte [esp + 0x14], 0x5c
call fcn.00401c90
xor esi, esi
cmp eax, esi
jge 0x4016f7
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x14], 0x2f
call fcn.00401c90
cmp eax, esi
jge 0x4016f7
mov edi, 0x10
cmp dword [esp + 0x80], edi
jb 0x4016a8
mov edx, dword [esp + 0x6c]
push edx
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x48], edi
mov ebx, 0xf
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], esi
mov byte [esp + 0x6c], 0
jb 0x4016d0
mov eax, dword [esp + 0x34]
push eax
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
jb 0x4016f0
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042a2ef
add esp, 4
xor al, al
jmp 0x401985
push eax
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.00401b80
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a4], 3
call fcn.00401bb0
mov edi, 0x10
mov byte [esp + 0x498], 2
cmp dword [esp + 0x2c], edi
jb 0x40173d
mov edx, dword [esp + 0x18]
push edx
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x40174b
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00447517
add esp, 8
test eax, eax
je 0x401788
cmp dword [esp + 0x48], edi
mov esi, dword [esp + 0x34]
jae 0x401768
lea esi, [esp + 0x34]
push 0
push esi
call fcn.00447517
push 0
push esi
call fcn.00447517
add esp, 0x10
test eax, eax
je 0x401788
push esi
call fcn.004478ec
add esp, 4
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x401796
lea eax, [esp + 0x34]
lea ecx, [esp + 0x84]
push ecx
push 0
push str.DTLTMP
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401834
push ebx
push str.GetTempFileName__s_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
cmp dword [esp + 0x80], edi
jb 0x4017e1
mov edx, dword [esp + 0x6c]
push edx
call fcn.0042a2ef
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x48], edi
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x40180a
mov eax, dword [esp + 0x34]
push eax
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x4016f0
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042a2ef
add esp, 4
xor al, al
jmp 0x401985
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea edx, [esp + 0x88]
push edx
push ebx
call esi
test eax, eax
jne 0x4018de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x88]
push eax
push ebx
push 0x4686fc
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0x14
cmp dword [esp + 0x80], edi
jb 0x40188b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0042a2ef
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x48], edi
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x4018b4
mov edx, dword [esp + 0x34]
push edx
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x4016f0
mov eax, dword [esp + 0x50]
push eax
call fcn.0042a2ef
add esp, 4
xor al, al
jmp 0x401985
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x4018ec
lea eax, [esp + 0x50]
push 1
push ebx
push eax
call esi
test eax, eax
jne 0x40195a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x4019ab
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40193d
test al, 1
je 0x40193d
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40193d
push ebx
push str._COMEBACK_:set__s_not_readonly_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x40194c
lea eax, [esp + 0x50]
push 1
push ebx
push eax
call esi
test eax, eax
je 0x401a3d
push 4
push 0
lea edx, [esp + 0x8c]
push edx
call esi
lea ecx, [esp + 0x68]
call fcn.00401b20
lea ecx, [esp + 0x30]
call fcn.00401b20
lea ecx, [esp + 0x4c]
call fcn.00401b20
mov al, 1
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00445276
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x11
jne 0x401a25
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x4019bf
lea eax, [esp + 0x50]
push 3
push ebx
push eax
call esi
test eax, eax
jne 0x40195a
call edi
cmp eax, 5
jne 0x401a3d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a06
test al, 1
je 0x401a06
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x401a06
push ebx
push str._COMEBACK_:set__s_not_readonly_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x401a15
lea eax, [esp + 0x50]
push 3
push ebx
push eax
call esi
test eax, eax
jne 0x40195a
jmp 0x401a3d
push eax
push ebx
push str._COMEBACK_:MoveFileEx__s__d_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0x10
push 0
push ebx
call fcn.00447490
add esp, 8
test eax, eax
jne 0x401a55
push ebx
call fcn.004475dd
add esp, 4
push 1
push ebx
lea ecx, [esp + 0x8c]
push ecx
call esi
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x401a71
lea eax, [esp + 0x50]
push ebx
push eax
push 0x468744
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0x10
lea ecx, [esp + 0x68]
call fcn.00401b20
lea ecx, [esp + 0x30]
call fcn.00401b20
lea ecx, [esp + 0x4c]
call fcn.00401b20
xor al, al
jmp 0x401985