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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fd178
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7e6410]
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
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c1a44
test al, 0x10
je 0x4c1a44
mov al, 1
jmp 0x4c1c21
mov ecx, esi
call fcn.004c1da0
test al, al
je 0x4c1a56
xor al, al
jmp 0x4c1c21
mov ecx, esi
call fcn.004c1fc0
xorps xmm0, xmm0
mov dword [ebp - 0x64], eax
push esi
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.004bbbb0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.004bbf00
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
test eax, eax
js 0x4c1aaf
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x4c1aaf
cmp ebx, 1
jne 0x4c1aa4
mov bl, bl
jmp 0x4c1c16
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push eax
movq qword [ebp - 0x28], xmm0
call fcn.004bbc30
mov byte [ebp - 4], 1
mov esi, ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c1bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c1b39
lea ecx, [ebp - 0x60]
call fcn.004bac70
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004c14d0
test al, al
jne 0x4c1b18
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.006b3261
add esp, 4
jmp 0x4c1b39
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
shr ebx, 4
call fcn.006b3261
add esp, 4
and bl, 1
jne 0x4c1bcb
mov ebx, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c1c3d
test ebx, ebx
je 0x4c1c3d
lea esi, [edi - 2]
movzx eax, word [esi + ebx*2]
lea esi, [esi + ebx*2]
cmp eax, 0x5c
je 0x4c1b7b
cmp ax, 0x2f
je 0x4c1b7b
cmp esi, edi
je 0x4c1c3d
movzx eax, word [esi - 2]
sub esi, 2
cmp eax, 0x5c
jne 0x4c1b61
sub esi, edi
sar esi, 1
js 0x4c1c3d
test esi, esi
je 0x4c1c3d
cmp esi, 1
jne 0x4c1ba7
movzx eax, word [edi]
cmp eax, 0x5c
je 0x4c1c3d
cmp eax, 0x2f
je 0x4c1c3d
lea eax, [esi + 1]
cmp dword [ebp - 0x64], eax
jae 0x4c1c3d
cmp esi, ebx
jae 0x4c1ad0
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [edi + esi*2], ax
jmp 0x4c1ad0
mov ebx, dword [ebp - 0x24]
cmp esi, ebx
jge 0x4c1c09
mov edi, dword [ebp - 0x28]
lea ecx, [edi + 2]
lea ecx, [ecx + esi*2]
call fcn.004c1c90
test eax, eax
jns 0x4c1be8
mov esi, ebx
jmp 0x4c1beb
inc esi
add esi, eax
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004bbdb0
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c1c3d
cmp esi, ebx
jl 0x4c1bd2
mov bl, 1
push dword [ebp - 0x28]
call fcn.006b3261
add esp, 4
push edi
call fcn.006b3261
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.006b3266
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x4c1c0b