Function at 0x419820
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d45d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x5fc150]
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 esi, ecx
mov dword [ebp - 0x2d4], esi
push 0x60fb2c
mov dword [ebp - 0x2e4], 0x60fb2c
call fcn.005168d0
add esp, 4
test eax, eax
je 0x41987a
push eax
call fcn.00516a24
add esp, 4
mov dword [ebp - 4], 0
xor bl, bl
mov eax, dword [esi]
mov byte [ebp - 0x2ba], bl
mov byte [ebp - 0x2b9], bl
mov eax, dword [eax + 0x580]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x2e0], edi
mov al, byte [edi + 0x30]
test al, al
je 0x419c77
mov al, byte [edi + 0xb0]
test al, al
je 0x419c70
mov eax, dword [edi + 0x34]
lea ecx, [ebp - 0x284]
lea esi, [eax - 4]
neg esi
sbb esi, esi
and esi, eax
call fcn.005013c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
push esi
call fcn.00501c50
mov eax, dword [edi + 0x38]
mov ecx, edi
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x270]
push eax
call fcn.0041b050
mov byte [ebp - 4], 2
cmp dword [ebp - 0x260], 0
jne 0x419a38
call fcn.0040baa0
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.0041b700
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x270]
push eax
call fcn.00403e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b8]
call fcn.004038c0
push str._backup_
lea ecx, [ebp - 0x270]
call fcn.0040a2e0
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x41995f
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419988
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x41997f
lea eax, [ebp - 0x270]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi + 0x8c]
lea ecx, [ebp - 0x270]
call fcn.0040a2e0
push 0
call fcn.0054fb7f
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2dc]
push eax
mov dword [ebp - 0x2d8], edx
call fcn.0054fad9
add esp, 8
test eax, eax
jne 0x4199e4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.004038c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00501420
xor bl, bl
jmp 0x419d89
push eax
push str._Y__m__d__H_M_S
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0054ee89
add esp, 0x10
lea ecx, [ebp - 0x270]
push 0x588fe0
call fcn.0040a2e0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x270]
call fcn.0040a2e0
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x270]
cmp ecx, eax
je 0x419a31
push 0xffffffffffffffff
push 0
push eax
call fcn.00406ac0
mov byte [ebp - 0x2b9], 1
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x419a4d
lea eax, [ebp - 0x270]
push 0
lea ecx, [ebp - 0x258]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x258]
push 0x7e
push eax
call fcn.0054422d
add esp, 8
test eax, eax
je 0x419a8a
push 0x104
lea eax, [ebp - 0x258]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x419aac
xor eax, 1
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x588fe4
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x284]
call fcn.00501a90
test eax, eax
je 0x419c10
mov esi, dword [ebp - 0x2d4]
push 0
push 0
push 0x7d6
mov eax, dword [esi]
mov ecx, dword [eax + 0x580]
call fcn.0040d9f0
mov ecx, dword [esi]
mov ebx, eax
push 0
push 0
push 0x9d8
mov ecx, dword [ecx + 0x580]
call fcn.0040d9f0
xor esi, esi
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2c8], 0xffffffff
jne 0x419b24
push ebx
push eax
lea ecx, [ebp - 0x284]
call fcn.00501ab0
mov esi, eax
jmp 0x419be6
call fcn.0040b9e0
mov ecx, eax
mov dword [ebp - 0x2d0], ecx
test ebx, ebx
jle 0x419be8
xor edi, edi
jmp 0x419b40
mov esi, ebx
sub esi, edi
cmp esi, 0x20004
jle 0x419b51
mov esi, 0x20004
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2c0], 0
push eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2cc], 0
push eax
mov eax, dword [ebp - 0x2d8]
push esi
push 0xfde9
add eax, edi
mov dword [ebp - 0x2c4], 0
push eax
call fcn.00424360
lea ecx, [ebp - 0x2c0]
push ecx
push dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
push eax
call fcn.00427d90
push dword [ebp - 0x2c0]
sub esi, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x284]
push eax
call fcn.00501ab0
mov ecx, dword [ebp - 0x2d0]
add edi, esi
mov dword [ebp - 0x2c0], eax
cmp edi, ebx
jl 0x419b40
mov edi, dword [ebp - 0x2e0]
mov esi, eax
test ebx, ebx
jne 0x419bef
mov esi, 1
lea ecx, [ebp - 0x284]
call fcn.00501a60
cmp esi, 1
jne 0x419c0a
mov byte [edi + 0xb0], 0
mov bl, 1
jmp 0x419c10
mov bl, byte [ebp - 0x2ba]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x25c]
cmp eax, 8
jb 0x419c32
inc eax
lea ecx, [ebp - 0x270]
push eax
push dword [ebp - 0x270]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
mov word [ebp - 0x270], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x284]
call fcn.00501420
test bl, bl
je 0x419d89
mov esi, dword [ebp - 0x2d4]
jmp 0x419d79
mov bl, 1
jmp 0x419d89
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.0041b050
mov byte [ebp - 4], 4
cmp dword [ebp - 0x290], 0
je 0x419d38
lea eax, [ebp - 0x2b8]
mov ecx, edi
push eax
call fcn.0041b050
mov byte [ebp - 4], 5
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], 0
mov word [ebp - 0x288], ax
mov byte [ebp - 4], 6
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x288]
cmp ecx, eax
je 0x419cf7
push 0xffffffffffffffff
push 0
push eax
call fcn.00406ac0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x288]
call fcn.004038c0
cmp dword [ebp - 0x2a4], 8
mov eax, dword [ebp - 0x2b8]
jae 0x419d1b
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x2b9], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b8]
call fcn.004038c0
mov bl, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28c]
cmp eax, 8
jb 0x419d5c
inc eax
lea ecx, [ebp - 0x2a0]
push eax
push dword [ebp - 0x2a0]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x28c], 7
mov dword [ebp - 0x290], 0
mov word [ebp - 0x2a0], ax
cmp byte [ebp - 0x2b9], 0
je 0x419d89
mov ecx, dword [esi]
call fcn.0049d620
mov dword [ebp - 4], 0xffffffff
push 0x60fb2c
call fcn.0051692d
add esp, 4
test eax, eax
je 0x419daa
push eax
call fcn.00516a24
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret