Function at 0x401e69
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x44d0e4]
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 0x401f3f
cmp dword [ebp - 0x88], ebx
je 0x401edf
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 0x401f3f
cmp dword [ebp - 0x84], ebx
je 0x401f18
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 0x401f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402071
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.004204a0
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 0x401f8d
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 0x401fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402057
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402040
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x402040
push ebx
push dword [ebp - 0x8c]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x402040
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], 0xc
mov dword [ebp - 0xa0], esi
jb 0x40202e
mov edi, dword [edi]
lea eax, [ebp - 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40204e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x402057
jmp 0x402050
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x8c], ebx
je 0x402071
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x84], ebx
je 0x40208b
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x84], ebx
cmp dword [ebp - 0x88], ebx
je 0x4020a5
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x98], ebx
je 0x4020b9
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.0041e61b
leave
ret