Function at 0x10007170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c410
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x100962c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.10007060
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x58]
push 1
lea edi, [ebp - 0x40]
mov byte [ebp - 0x44], 0
cmovae edi, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1000720b
push 0
push 0
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1000720b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x44], 1
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10007278
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
mov ecx, 0x10087198
nop dword [eax + eax]
cmp eax, dword [ecx]
je 0x10007246
add ecx, 8
cmp ecx, 0x10087298
jne 0x10007230
mov eax, 1
jmp 0x10007249
mov eax, dword [ecx + 4]
mov dword [ebp - 0x8c], eax
cmp eax, 9
je 0x10007278
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0xc4]
push eax
call fcn.1004cc2d
mov ecx, esi
call fcn.10007060
push 1
push 0x10087878
mov ecx, esi
call fcn.1000d370
cmp dword [0x1009ab70], 0
jne 0x100072aa
cmp dword [0x1009ab9c], 0
jne 0x100072aa
sub esp, 8
call fcn.1000d930
add esp, 8
push 0xffffffffffffffff
push 0
push dword [0x1009ab70]
mov ecx, esi
call fcn.1000d4a0
cmp dword [esi + 0x14], 0x10
jb 0x100072c5
mov edi, dword [esi]
jmp 0x100072c7
mov edi, esi
push 1
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x68], 0
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1000730d
push 0
push 0
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1000730d
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x68], 1
lea eax, [ebp - 0x88]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10007378
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
mov ecx, 0x10087198
cmp eax, dword [ecx]
je 0x10007346
add ecx, 8
cmp ecx, 0x10087298
jne 0x10007330
mov eax, 1
jmp 0x10007349
mov eax, dword [ecx + 4]
mov dword [ebp - 0x94], eax
cmp eax, 9
je 0x10007378
push ecx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xf0]
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0xf0]
push eax
call fcn.1004cc2d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0
call fcn.10002ec0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push 0
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100058c0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x100073d7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10003190
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x100073fe
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10003190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049b55
mov esp, ebp
pop ebp
ret