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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468a10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41be8d
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x41c04c
mov ecx, dword [ebp + 8]
push 0x5c
push ecx
call fcn.0044fed6
add esp, 8
test eax, eax
je 0x41c038
sub eax, dword [ebp + 8]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c038
lea eax, [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00421630
mov edx, dword [ebp + 8]
mov eax, dword [edx - 0xc]
mov ecx, edi
push ecx
sub eax, ebx
mov ecx, ebx
call fcn.004217a0
mov esi, dword [ebp - 0x10]
push ecx
lea edi, [esi - 0x10]
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00426710
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.0041be10
test al, al
jne 0x41bf4e
mov byte [ebp - 4], al
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41bf12
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bf38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x41c094
cmp eax, ecx
jg 0x41c094
cmp word [esi + eax*2], 0x5c
jne 0x41bf91
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c058
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x41c058
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bfb4
lea eax, [ebp - 0x10]
call fcn.004245a0
lea eax, [ebp + 8]
call fcn.004245a0
jmp 0x41c07e
mov edx, dword [ebp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41c025
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x120], eax
lea edi, [ebx + 0x118]
test eax, eax
je 0x41bfee
push eax
mov eax, dword [ebp + 8]
push eax
push str.Failed_to_create_directory___s_._Error:__d.
call fcn.00428b20
add esp, 0xc
jmp 0x41bfff
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_create_directory___s_.
call fcn.00428b20
add esp, 8
lea eax, [ebp - 0x10]
call fcn.004245a0
lea eax, [ebp + 8]
call fcn.004245a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x144]
mov eax, dword [ebp + 8]
push edx
call fcn.00409e20
test al, al
je 0x41bfff
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c058
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c07e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401680
int3