Function at 0x401609
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x84], 0x500
lea eax, [ebp - 0x98]
mov dword [ebp - 0x88], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x88]
mov dword [ebp - 0x98], ebx
push eax
mov edi, ecx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4016df
cmp dword [ebp - 0x90], ebx
je 0x40167f
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x90]
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 - 0x88]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4016df
cmp dword [ebp - 0x8c], ebx
je 0x4016b8
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4016ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401811
mov eax, dword [ebp - 0x90]
mov ecx, 0x1f01ff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x8c]
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.00422e80
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 0x40172d
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], ebx
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 3
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x40177f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4017f7
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4017e0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4017e0
push ebx
push dword [ebp - 0x94]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4017e0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], 0xc
mov dword [ebp - 0xa0], esi
jb 0x4017ce
mov edi, dword [edi]
lea eax, [ebp - 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4017ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4017f7
jmp 0x4017f0
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x94], ebx
je 0x401811
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x94], ebx
cmp dword [ebp - 0x8c], ebx
je 0x40182b
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x90], ebx
je 0x401845
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x98], ebx
je 0x401859
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.0041ebed
leave
ret