Function at 0x43071e
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x48a14e
call fcn.0047dc8f
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], ecx
or dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x20], 0x500
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
lea edi, [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x1c], 0x11
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0x12
mov dword [ebp - 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
jne 0x43078f
mov edi, 0x80070057
jmp 0x4309cd
lea eax, [ebp - 0x28]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4309bf
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4309bf
lea ecx, [ebp - 0x34]
call fcn.004342a7
mov edi, eax
test edi, edi
js 0x4309cd
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.00433c1b
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push dword [ebp - 0x34]
add edi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 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 - 0x3c]
call fcn.00433c1b
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x43084b
mov edi, 0x8007000e
jmp 0x4309cd
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4309bf
push dword [ebp - 0x28]
push 0x10000000
push 2
pop edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x4309bf
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4309bf
mov eax, dword [ebp - 0x2c]
or byte [eax + 1], 3
push dword [ebp - 0x30]
push 0xa0000000
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x4309bf
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4309bf
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push 0xa0000000
push edi
push esi
or byte [eax + 1], 3
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x4309bf
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4309bf
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push 3
or byte [eax + 1], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ed9f
mov edi, eax
test edi, edi
js 0x4309cd
push 1
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4309bf
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x4309bf
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x4309bf
push edi
push esi
push 1
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4309bf
mov eax, 0x3000
push eax
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
je 0x4309bf
and dword [ebp - 0x4c], edi
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x54], 0xc
mov ecx, ebx
mov dword [ebp - 0x50], eax
call fcn.004317d0
mov edi, eax
test edi, edi
js 0x4309cd
cmp dword [ebp - 0x40], 0
je 0x4309b0
push 0
push 0
push 0x12
pop edx
mov ecx, ebx
call fcn.0043a1cc
test eax, eax
je 0x4309bf
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4309d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov edi, eax
push edi
call fcn.004321e3
push edi
call fcn.00432150
lea ecx, [ebp - 0x38]
call fcn.00432fe4
lea ecx, [ebp - 0x38]
call fcn.00432fe4
lea ecx, [ebp - 0x48]
call fcn.0043239d
lea ecx, [ebp - 0x44]
call fcn.0042e8b9
cmp dword [ebp - 0x30], 0
je 0x430a0c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
je 0x430a1f
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
call fcn.0042e8b9
mov eax, edi
call fcn.0047dc41
ret