Function at 0x42fa4e
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x489252
call fcn.0047ceef
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 0x42fabf
mov edi, 0x80070057
jmp 0x42fcfd
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 0x42fcef
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 0x42fcef
lea ecx, [ebp - 0x34]
call fcn.004335b7
mov edi, eax
test edi, edi
js 0x42fcfd
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.00432f2b
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.00432f2b
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x42fb7b
mov edi, 0x8007000e
jmp 0x42fcfd
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x42fcef
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 0x42fcef
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x42fcef
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 0x42fcef
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x42fcef
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 0x42fcef
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x42fcef
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push 3
or byte [eax + 1], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.0042e074
mov edi, eax
test edi, edi
js 0x42fcfd
push 1
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x42fcef
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 0x42fcef
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
je 0x42fcef
push edi
push esi
push 1
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x42fcef
mov eax, 0x3000
push eax
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
je 0x42fcef
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.00430b00
mov edi, eax
test edi, edi
js 0x42fcfd
cmp dword [ebp - 0x40], 0
je 0x42fce0
push 0
push 0
push 0x12
pop edx
mov ecx, ebx
call fcn.0043941c
test eax, eax
je 0x42fcef
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42fd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov edi, eax
push edi
call fcn.004314fa
push edi
call fcn.00431467
lea ecx, [ebp - 0x38]
call fcn.004322f4
lea ecx, [ebp - 0x38]
call fcn.004322f4
lea ecx, [ebp - 0x48]
call fcn.004316b4
lea ecx, [ebp - 0x44]
call fcn.0042dbea
cmp dword [ebp - 0x30], 0
je 0x42fd3c
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x28], 0
je 0x42fd4f
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
call fcn.0042dbea
mov eax, edi
call fcn.0047cea1
ret