Function at 0x458950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x66c214]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [esp + 0xc], eax
call fcn.00442a40
mov edi, eax
push 0
push edi
call fcn.0058d125
push edi
mov esi, eax
call fcn.0058d115
add esp, 0x10
test esi, esi
jne 0x4589a1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00562e44
mov esp, ebp
pop ebp
ret 4
push dword [esp + 8]
call fcn.00442a40
mov edi, eax
add esp, 4
test edi, edi
jne 0x4589cb
mov eax, 0x300
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00562e44
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 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 0x458b96
mov eax, dword [esp + 0x10]
test eax, eax
je 0x458b96
xorps xmm0, xmm0
mov dword [esp + 8], 0x30a
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xc]
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 + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x458b46
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x458b2b
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x458b0a
push 0
push dword [esp + 0x10]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x458afc
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 0x458aee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0xc], 0
call esi
jmp 0x458b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x458b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x458b16
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.004541a0
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x458b5c
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.004541a0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x458b59
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.004541a0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x458b67
push eax
call esi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x458b76
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.0058d115
mov eax, dword [esp + 0xc]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00562e44
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.004541a0
push edi
call fcn.0058d115
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
xor ecx, esp
call fcn.00562e44
mov esp, ebp
pop ebp
ret 4