Function at 0x5c0650
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68aaea
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 3
mov eax, dword [edi]
mov esi, eax
jbe 0x5c0691
cmp word [eax + 2], 0x3a
jne 0x5c0691
add esi, 6
movzx ecx, word [esi]
test cx, cx
je 0x5c070d
nop dword [eax]
cmp cx, 0x5c
je 0x5c06ac
cmp cx, 0x2f
jne 0x5c06fd
xor eax, eax
mov word [esi], ax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c06c2
test al, 0x10
jne 0x5c06f5
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c06f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
jne 0x5c08e1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x5c084b
mov eax, 0x5c
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x5c06a0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c0aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
je 0x5c0a3d
lea eax, [ebp - 0x70]
push eax
call fcn.005be990
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.005c0b70
add esp, 0x10
push 2
push 0x69cbc0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004485a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
call fcn.005a2b00
lea eax, [ebp - 0x58]
mov ecx, 0x7460c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c07e0
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c07d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c0814
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c080a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c09f4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c09ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
jmp 0x5c09ea
push dword [edi]
lea eax, [ebp - 0x70]
push eax
call fcn.005be990
add esp, 8
push 0x1e
push str._exists_and_is_not_a_directory
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.004485a0
mov ecx, 0x7460c8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x28]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c08d2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c08c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0a
push edx
push ecx
call fcn.0065d157
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00448860
xor al, al
jmp 0x5c0aef
lea eax, [ebp - 0x70]
push eax
call fcn.005be990
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005c0b70
add esp, 0x10
push 2
push 0x69cbc0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004485a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
call fcn.005a2b00
lea eax, [ebp - 0x58]
mov ecx, 0x7460c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c098c
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0982
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c09c0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c09b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c09f4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c09ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x5c0ae9
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0adf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
jmp 0x5c0adf
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x5c0aed
push dword [edi]
lea eax, [ebp - 0x58]
push eax
call fcn.005be990
add esp, 8
push 0x1e
push str._exists_and_is_not_a_directory
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.004485a0
mov ecx, 0x7460c8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
push eax
movq qword [ebp - 0x30], xmm0
call fcn.005a3660
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c0ace
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0ac4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c0b0f
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c0ae9
mov ecx, dword [ebp - 0x58]
inc edx
jmp 0x5c0a16
push edx
push ecx
call fcn.0065d157
add esp, 8
xor al, al
jmp 0x5c0aef
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
call fcn.00663c8b
int3