Function at 0x401ec9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4510e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x90], 0x500
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], ebx
push eax
mov edi, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401f9f
cmp dword [ebp - 0x88], ebx
je 0x401f3f
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x88]
xor esi, esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
inc esi
lea eax, [ebp - 0x94]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401f9f
cmp dword [ebp - 0x84], ebx
je 0x401f78
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4020d1
mov eax, dword [ebp - 0x88]
mov ecx, 0x1f01ff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x84]
push 0x60
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0x1200a9
call fcn.00423cf0
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov eax, dword [ebp + edx*8 - 0x18]
mov dword [ecx - 4], eax
mov eax, dword [ebp + edx*8 - 0x1c]
inc edx
mov dword [ecx], esi
lea ecx, [ecx + 0x20]
mov dword [ecx - 0x1c], 3
mov dword [ecx - 0x10], ebx
mov dword [ecx - 0xc], 5
mov dword [ecx - 8], eax
cmp edx, 3
jb 0x401fed
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 3
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x40203f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4020b7
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4020a0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4020a0
push ebx
push dword [ebp - 0x8c]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4020a0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], 0xc
mov dword [ebp - 0xa0], esi
jb 0x40208e
mov edi, dword [edi]
lea eax, [ebp - 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4020ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4020b7
jmp 0x4020b0
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x8c], ebx
je 0x4020d1
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x84], ebx
je 0x4020eb
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x84], ebx
cmp dword [ebp - 0x88], ebx
je 0x402105
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x98], ebx
je 0x402119
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421c3b
leave
ret