Function at 0x5a9670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00494bf0
add esp, 4
test eax, eax
je 0x5a96a4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret 4
push edi
push esi
call fcn.004948e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x5a96cb
pop edi
mov eax, 0x300
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5a9876
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5a9876
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x38], xmm0
push eax
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x101fffff
push eax
mov esi, 0x30a
mov dword [ebp - 0x40], 1
push 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x5a9827
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x5a980d
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x5a97eb
push 0
push dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x5a97dd
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xc
push eax
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x5a97cf
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
jmp 0x5a983d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x5a97f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x5a97f7
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.00592b90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
jmp 0x5a983d
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.00592b90
mov esi, 0x30a
jmp 0x5a983a
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.00592b90
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5a984b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5a9859
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.0061de50
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060cdfa
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.00592b90
push edi
call fcn.0061de50
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 0x30a
pop edi
pop esi
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret 4