Function at 0x471de0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5f11e4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045df40
add esp, 4
test eax, eax
je 0x471e1b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004feb45
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0045d750
mov edi, eax
add esp, 4
test edi, edi
jne 0x471e42
mov eax, 0x300
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004feb45
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
mov word [esp + 0x74], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x47200d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47200d
xorps xmm0, xmm0
mov dword [esp + 0x10], 0x30a
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0x28]
movaps xmmword [esp + 0x28], xmm0
push eax
push 1
mov dword [esp + 0x30], 0x101fffff
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 3
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 5
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x471fbd
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x471fa2
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x471f81
push 0
push dword [esp + 0xc]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x471f73
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xc
push eax
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x471f65
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], 0
call esi
jmp 0x471fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x471f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x471f8d
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.0046dba0
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x471fd3
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.0046dba0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x471fd0
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.0046dba0
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
je 0x471fde
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x471fed
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00518a05
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004feb45
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_AllocateAndInitializeSid:_error_code__d
push 2
call fcn.0046dba0
push edi
call fcn.00518a05
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
xor ecx, esp
call fcn.004feb45
mov esp, ebp
pop ebp
ret 4