Function at 0x41a310
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5461d1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ec938]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x224], ebx
cmp eax, 0x11
jne 0x41a552
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a36f
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x220]
lea edi, [esi + 0x148]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00413df0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00402930
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a3d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0052c850
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052cd4a
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.0052dac8
mov esi, eax
add esp, 0x20
test esi, esi
je 0x41a4e3
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.00417f50
xor ecx, ecx
mov word [esi], cx
add esi, 2
push 0x5c
push esi
mov byte [ebp - 4], 2
call fcn.0052ceac
mov edi, eax
add esp, 8
test edi, edi
je 0x41a44c
add edi, 2
jmp 0x41a44e
mov edi, esi
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x41a46f
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004021c0
mov ebx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
push ebx
push str._s_s
add esi, 0x12
push 0x104
push esi
call fcn.0052d99b
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41a4a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
push str._s_s
push 0x104
push esi
call fcn.0052d99b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41a528
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x41a504
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004021c0
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x218]
push edx
push ebx
push str._s_s
add eax, 0x12
push 0x104
push eax
call fcn.0052d99b
add esp, 0x14
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a54b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 1
jmp 0x41a567
cmp eax, 0x13
jne 0x41a565
mov eax, dword [ebx]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
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.0052c2ec
mov esp, ebp
pop ebp
ret 0xc