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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a57a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x745694]
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 0x5c0301
cmp word [eax + 2], 0x3a
jne 0x5c0301
add esi, 6
movzx ecx, word [esi]
test cx, cx
je 0x5c037d
nop dword [eax]
cmp cx, 0x5c
je 0x5c031c
cmp cx, 0x2f
jne 0x5c036d
xor eax, eax
mov word [esi], ax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5c0332
test al, 0x10
jne 0x5c0365
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c0365
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
jne 0x5c0551
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x5c04bb
mov eax, 0x5c
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x5c0310
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c075d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x74], eax
push ecx
cmp eax, 0xb7
je 0x5c06ad
lea eax, [ebp - 0x70]
push eax
call fcn.005be600
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.005c07e0
add esp, 0x10
push 2
push 0x69bb60
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, 0x7450c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c0450
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0446
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c0484
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c047a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c0664
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c065a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
jmp 0x5c065a
push dword [edi]
lea eax, [ebp - 0x70]
push eax
call fcn.005be600
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, 0x7450c8
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 0x5c0542
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0538
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077a
push edx
push ecx
call fcn.0065cc27
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00448860
xor al, al
jmp 0x5c075f
lea eax, [ebp - 0x70]
push eax
call fcn.005be600
mov esi, eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005c07e0
add esp, 0x10
push 2
push 0x69bb60
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, 0x7450c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c05fc
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c05f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c0630
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0626
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c0664
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c065a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
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 0x5c0759
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c074f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
jmp 0x5c074f
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x5c075d
push dword [edi]
lea eax, [ebp - 0x58]
push eax
call fcn.005be600
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, 0x7450c8
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 0x5c073e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c0734
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c077f
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x5c0759
mov ecx, dword [ebp - 0x58]
inc edx
jmp 0x5c0686
push edx
push ecx
call fcn.0065cc27
add esp, 8
xor al, al
jmp 0x5c075f
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.0065cc3a
mov esp, ebp
pop ebp
ret
call fcn.0066375b
call fcn.0066375b
int3