Function at 0x471500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5df3f4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045b4a0
add esp, 4
test eax, eax
je 0x47153b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0045af40
mov edi, eax
add esp, 4
test edi, edi
jne 0x471562
mov eax, 0x300
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050ad85
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 0x47172d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47172d
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 0x4716dd
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4716c2
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4716a1
push 0
push dword [esp + 0xc]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x471693
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 0x471685
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], 0
call esi
jmp 0x4716f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x4716ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x4716ad
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.0046cc00
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x4716f3
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.0046cc00
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4716f0
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.0046cc00
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
je 0x4716fe
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x47170d
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00524165
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050ad85
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.0046cc00
push edi
call fcn.00524165
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
xor ecx, esp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret 4