Function at 0x10128890
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10189780
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101f0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x101288ca
xor al, al
jmp 0x10128a93
push esi
call fcn.10128710
add esp, 4
test al, al
je 0x101288de
mov al, 1
jmp 0x10128a93
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101288e8
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x1012893b
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.101417f0
test al, al
je 0x1012892c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007c90
push esi
call fcn.10128710
add esp, 4
test al, al
jne 0x101288d7
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10128a22
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x10128964
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x10128987
mov eax, esi
cmp ecx, 8
jb 0x1012897d
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x10128a18
push edi
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10029880
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x10128a09
lea eax, [ebp - 0x40]
push eax
call fcn.10128540
add esp, 4
test al, al
jne 0x10128a09
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x10128a09
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.101417f0
test al, al
je 0x101289fd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10007c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10007c90
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x10128958
push esi
call fcn.10128540
add esp, 4
test al, al
jne 0x10128a8a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10128a39
mov eax, dword [esi]
push 0
push eax
call ebx
test eax, eax
jne 0x10128a8a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.101417f0
test al, al
je 0x10128a7b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007c90
push esi
call fcn.10128710
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101606b4
mov esp, ebp
pop ebp
ret