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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6918da
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x74e694]
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 0x5c5231
cmp word [eax + 2], 0x3a
jne 0x5c5231
add esi, 6
movzx ecx, word [esi]
test cx, cx
je 0x5c52ad
nop dword [eax]
cmp cx, 0x5c
je 0x5c524c
cmp cx, 0x2f
jne 0x5c529d
xor eax, eax
mov word [esi], ax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c5262
test al, 0x10
jne 0x5c5295
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c5295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
jne 0x5c5481
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x5c53eb
mov eax, 0x5c
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x5c5240
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c568d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
je 0x5c55dd
lea eax, [ebp - 0x70]
push eax
call fcn.005c3530
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.005c5710
add esp, 0x10
push 2
push 0x6a4814
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, 0x74e0c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c5380
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c5376
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c53b4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c53aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c5594
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c558a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
jmp 0x5c558a
push dword [edi]
lea eax, [ebp - 0x70]
push eax
call fcn.005c3530
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, 0x74e0c8
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 0x5c5472
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c5468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56aa
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00448860
xor al, al
jmp 0x5c568f
lea eax, [ebp - 0x70]
push eax
call fcn.005c3530
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005c5710
add esp, 0x10
push 2
push 0x6a4814
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, 0x74e0c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c552c
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c5522
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c5560
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c5556
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c5594
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c558a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
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 0x5c5689
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c567f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
jmp 0x5c567f
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x5c568d
push dword [edi]
lea eax, [ebp - 0x58]
push eax
call fcn.005c3530
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, 0x74e0c8
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 0x5c566e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c5664
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c56af
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c5689
mov ecx, dword [ebp - 0x58]
inc edx
jmp 0x5c55b6
push edx
push ecx
call fcn.00663ac7
add esp, 8
xor al, al
jmp 0x5c568f
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.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
call fcn.0066a5fb
int3