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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41ddb8
test byte [eax + 0x1c], 2
je 0x41ddb8
cmp byte [eax + 0x19], 5
jb 0x41ddb8
push dword [eax + 0x14]
mov edx, 0x409764
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.00414ca8
mov ecx, esi
call fcn.0041e045
mov esi, eax
mov ebx, esi
test esi, esi
jne 0x41de0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41e020
test byte [eax + 0x1c], 2
je 0x41e020
cmp byte [eax + 0x19], 2
jb 0x41e020
push edi
push dword [eax + 0x14]
mov edx, 0x409764
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.00414ccb
jmp 0x41e020
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41de23
test al, 0x10
je 0x41de23
xor eax, eax
jmp 0x41e020
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0xc]
jne 0x41de28
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x41de85
push 2
push 0x409718
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41de85
lea eax, [esi + 4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41df07
lea eax, [esi + 2]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41df07
jmp 0x41deb5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0xc]
jne 0x41de8a
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x41deba
push 1
push 0x408fe0
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41deba
add esi, 2
jmp 0x41deff
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0xc]
jne 0x41debf
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x41deff
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x41deff
push 2
lea eax, [esi + 2]
push 0x409720
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41deff
add esi, 6
test esi, esi
jne 0x41df9a
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41df9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x41df5c
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41e020
test byte [eax + 0x1c], 2
je 0x41e020
cmp byte [eax + 0x19], 2
jb 0x41e020
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x41e015
xor eax, eax
mov edi, eax
jmp 0x41e020
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
xor eax, eax
pop ecx
pop ecx
test esi, esi
je 0x41dfd2
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41df94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41dfa6
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
cmp word [esi], ax
jne 0x41df65
jmp 0x41e020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41e020
test byte [eax + 0x1c], 2
je 0x41e020
cmp byte [eax + 0x19], 2
jb 0x41e020
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
jmp 0x41e015
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41e020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x41e020
test byte [eax + 0x1c], 2
je 0x41e020
cmp byte [eax + 0x19], 2
jb 0x41e020
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
mov edx, 0x409764
pop ecx
call fcn.00414cf4
mov ecx, ebx
call fcn.0041c919
test edi, edi
je 0x41e032
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret