Function at 0x4793d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x610684]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004659c0
add esp, 4
test eax, eax
je 0x47940b
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00544516
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004651d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x479432
mov eax, 0x300
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00544516
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 0x4795fd
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4795fd
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 0x4795ad
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x479592
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x479571
push 0
push dword [esp + 0xc]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x479563
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 0x479555
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], 0
call esi
jmp 0x4795c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x47957d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x47957d
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.004751a0
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x4795c3
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.004751a0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4795c0
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.004751a0
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
je 0x4795ce
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4795dd
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.0054ca06
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00544516
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.004751a0
push edi
call fcn.0054ca06
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
xor ecx, esp
call fcn.00544516
mov esp, ebp
pop ebp
ret 4