Function at 0x425d4b
Capabilities:
Create directory

Disassembly:
push 0x54
mov eax, 0x4760f4
call fcn.00472eab
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], ecx
or dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], 0x500
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x3c], 0x12
test ebx, ebx
jne 0x425d9a
mov edi, 0x80070057
jmp 0x425fd8
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x425fc9
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x425fc9
lea ecx, [ebp - 0x28]
call fcn.00428bac
mov edi, eax
test edi, edi
js 0x425fd8
push dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.0042776b
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push edi
add esi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea edi, [esi + 0x20]
add edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042776b
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x425e56
mov edi, 0x8007000e
jmp 0x425fd8
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x425fc9
push dword [ebp - 0x1c]
push 0x10000000
push 2
pop edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x425fc9
lea eax, [ebp - 0x24]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x425fc9
mov eax, dword [ebp - 0x24]
or byte [eax + 1], 3
push dword [ebp - 0x20]
push 0xa0000000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x425fc9
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x425fc9
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push 0xa0000000
push edi
push esi
or byte [eax + 1], 3
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x425fc9
lea eax, [ebp - 0x24]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x425fc9
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push edi
or byte [eax + 1], 3
lea eax, [ebp - 0x40]
push eax
call fcn.00424bc3
mov edi, eax
test edi, edi
js 0x425fd8
push 1
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x425fc9
xor edi, edi
lea eax, [ebp - 0x60]
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x425fc9
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x425fc9
push edi
push esi
push 1
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x425fc9
mov eax, 0x1000
push eax
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
je 0x425fc9
and dword [ebp - 0x44], edi
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x4c], 0xc
mov ecx, ebx
mov dword [ebp - 0x48], eax
call fcn.00426bf6
mov edi, eax
test edi, edi
js 0x425fd8
cmp dword [ebp - 0x28], 0
je 0x425fba
push 0
push 0
push 0x12
pop edx
mov ecx, ebx
call fcn.0042ce7c
test eax, eax
je 0x425fc9
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x425fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov edi, eax
mov ecx, edi
call fcn.00427566
mov ecx, edi
call fcn.0042757e
lea ecx, [ebp - 0x2c]
call fcn.004276f7
lea ecx, [ebp - 0x2c]
call fcn.004276f7
lea ecx, [ebp - 0x38]
call fcn.00416f58
lea ecx, [ebp - 0x34]
call fcn.0041702b
cmp dword [ebp - 0x20], 0
je 0x426019
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x42602c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
call fcn.0041702b
mov eax, edi
call fcn.00472e69
ret