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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525948
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x590cc0]
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 edx, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41ccc5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402460
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], ebx
call fcn.0041c760
add esp, 8
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402630
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
jb 0x41cd18
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
push 0x5c
push 0x2f
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0041b510
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402630
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
jb 0x41cd4e
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41cd59
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0041bc70
add esp, 8
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402630
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
jb 0x41cd88
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
push 2
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
or edi, 0xffffffff
call fcn.00408740
mov ecx, dword [eax + 0x10]
push 2
push 0x542bb0
push ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004010d0
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
jb 0x41cdcb
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
test bl, bl
mov ebx, dword [ebp - 0x2c]
je 0x41ce18
xor eax, eax
test esi, esi
je 0x41ce06
cmp esi, eax
jbe 0x41cdfa
mov ecx, ebx
cmp edx, 8
jae 0x41cdec
lea ecx, [ebp - 0x2c]
cmp word [ecx + eax*2], 0x5c
jne 0x41ce04
inc eax
cmp esi, eax
ja 0x41cde2
jmp 0x41ce06
push str.invalid_string_position
call fcn.004b7a6b
mov edi, eax
push 1
push edi
push 0x539ff0
lea ecx, [ebp - 0x2c]
call fcn.00408330
mov edi, eax
mov eax, edi
mov dword [ebp - 0x50], 0x5c
inc eax
cmp eax, esi
jae 0x41ce53
sub esi, eax
mov edi, esi
cmp edi, 1
jb 0x41ce53
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41ce3b
lea ecx, [ebp - 0x2c]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x4c], eax
mov ecx, edi
test edi, edi
je 0x41ce53
cmp word [eax], 0x5c
je 0x41ce83
add eax, 2
dec ecx
jne 0x41ce47
cmp dword [ebp - 0x18], 8
jb 0x41ce65
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
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.004b9ff3
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x41ce53
mov esi, 1
lea edx, [ebp - 0x50]
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x41cf1f
add ecx, 2
add edx, 2
dec esi
jne 0x41ce91
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41ceb2
lea ecx, [ebp - 0x2c]
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x41ce53
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408740
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x41cedc
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ceec
test al, 0x10
jne 0x41cf04
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41cef7
lea eax, [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x41cf41
cmp dword [ebp - 0x34], edi
jb 0x41cf15
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9008
add esp, 4
mov eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x41ce21
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x41cea6
mov ecx, eax
sub ecx, dword [ebp - 0x4c]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
add eax, 2
jmp 0x41ce3e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x41cf55
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0x34], edi
jb 0x41cf68
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], edi
jb 0x41cf8d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
mov eax, esi
jmp 0x41ce67