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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bee0c
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4fca20]
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.0047e610
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.0041e0c0
add esp, 4
mov edi, dword [ebp - 0x224]
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jne 0x41ee76
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 0x41ee57
push 0x4cefbc
push esi
call fcn.0047f374
add esp, 8
cmp eax, ebx
je 0x41ee57
sub eax, esi
sar eax, 1
cmp eax, ebx
jle 0x41ee57
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 0x41ee51
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 0x41ee76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4fc7ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc7ec
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 0x41eefb
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41eefb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41eefb
mov ecx, dword [ebp - 0x220]
push 0x4cdb58
call fcn.004037ce
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 0x41ef2e
mov ecx, dword [eax]
push eax
jmp 0x41ef27
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 0x41ef2e
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 0x41ef51
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.0047e4d2
mov esp, ebp
pop ebp
ret