Function at 0x41cf60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9dbc
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e0240]
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]
xor ebx, ebx
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 0x21c], ebx
push edx
mov dword [ebp - 0x220], eax
mov word [ebp - 0x218], cx
call fcn.0046e590
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.0041c2e0
add esp, 4
mov edi, dword [ebp - 0x224]
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jne 0x41d096
lea eax, [edi - 0x10]
push eax
call fcn.004014d8
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], ebx
jl 0x41d077
push 0x4b7c70
push esi
call fcn.0046f2f4
add esp, 8
cmp eax, ebx
je 0x41d077
sub eax, esi
sar eax, 1
cmp eax, ebx
jle 0x41d077
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00401636
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0040195e
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d071
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x224]
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4e0004]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e0004
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push str._s_s_
push edx
mov byte [ebp - 4], 3
call fcn.00401a85
mov esi, dword [ebp - 0x21c]
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x41d11b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41d11b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d11b
mov ecx, dword [ebp - 0x220]
push 0x4b6ad0
call fcn.004037ad
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d14e
mov ecx, dword [eax]
push eax
jmp 0x41d147
add esi, 0xfffffff0
push esi
call fcn.004014d8
mov ecx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ecx], eax
or eax, 0xffffffff
lea edx, [esi + 0xc]
mov byte [ebp - 4], bl
add esp, 4
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41d14e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d171
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
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.0046e452
mov esp, ebp
pop ebp
ret