Function at 0x4cd490
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x645624]
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.0049bd40
mov edi, eax
push 0
push edi
call fcn.0059519b
push edi
mov esi, eax
call fcn.00593b50
add esp, 0x10
test esi, esi
jne 0x4cd4e1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4
push dword [esp + 8]
call fcn.0049bd40
mov edi, eax
add esp, 4
test edi, edi
jne 0x4cd50b
mov eax, 0x300
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0057b676
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 0x4cd6d6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cd6d6
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 0x4cd686
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4cd66b
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4cd64a
push 0
push dword [esp + 0x10]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4cd63c
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 0x4cd62e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0xc], 0
call esi
jmp 0x4cd69c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_error_code__d
jmp 0x4cd656
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_in_crateing_SLCache_folder:_SetSecurityDescriptorDacl:_error_code__d
jmp 0x4cd656
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.004c6e10
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x4cd69c
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.004c6e10
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4cd699
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.004c6e10
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4cd6a7
push eax
call esi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4cd6b6
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00593b50
mov eax, dword [esp + 0xc]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0057b676
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.004c6e10
push edi
call fcn.00593b50
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov eax, 0x30a
pop edi
pop esi
xor ecx, esp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 4