Function at 0x41ef20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
mov ebx, ecx
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x41f166
push 2
push edi
call fcn.004dbc31
mov esi, eax
add esp, 8
test esi, esi
je 0x41f166
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41ef81
mov word [esi], ax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41f134
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41f134
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
movq qword [ebp - 0x38], xmm0
mov edi, 0x30a
movq qword [ebp - 0x30], xmm0
movq qword [ebp - 0x28], xmm0
push 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x38], 0x101fffff
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x41f0ea
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x41f0d0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x41f0b2
push 0
push dword [ebp - 0x14]
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x41f0a4
lea eax, [ebp - 0x44]
push eax
push esi
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41f096
push edi
mov dword [ebp - 0x18], 0
call ebx
mov edi, dword [ebp - 0x18]
jmp 0x41f100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x41f0be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x41f0be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_InitializeSecurityDescriptor:_error_code__d
push 2
call fcn.00417ea0
add esp, 0xc
push edi
call ebx
mov edi, dword [ebp - 0x18]
jmp 0x41f100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_LocalAlloc:_error_code__d
push 2
call fcn.00417ea0
mov edi, 0x30a
jmp 0x41f0fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetEntriesInAcl:_error_code__d
push 2
call fcn.00417ea0
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41f10a
push eax
call ebx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41f118
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.004dbc6f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_AllocateAndInitializeSid:_error_code__d
push 2
call fcn.00417ea0
push esi
call fcn.004dbc6f
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x300
pop ebx
call fcn.004da4c1
mov esp, ebp
pop ebp
ret