Function at 0x100ba850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e8f3
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], 0
mov eax, dword [0x101e3b50]
and eax, 1
jne 0x100ba8dd
mov ecx, dword [0x101e3b50]
or ecx, 1
mov dword [0x101e3b50], ecx
mov dword [ebp - 4], 1
lea edx, [ebp - 0x59]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0xb4], 0x101e3b34
mov byte [ebp - 4], 2
push 0
push 0
mov ecx, 0x101e3b34
call fcn.10085cf0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
push 0x1019f580
call fcn.1014c847
add esp, 4
mov byte [ebp - 4], 0
movzx eax, byte [0x101e3b30]
test eax, eax
jne 0x100ba97b
push 1
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100ba590
add esp, 8
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 4
mov eax, dword [0x101a1a18]
push eax
push 0
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, 0x101e3b34
call fcn.10085bd0
mov dword [ebp - 4], 5
mov dword [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10085cf0
mov byte [ebp - 4], 0
xor edx, edx
cmp dword [0x101e3b44], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x100ba974
call fcn.10149a80
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
push str.TEMP
mov ecx, 0x101e3b34
call fcn.100c1d40
mov byte [0x101e3b30], 1
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100baaaa
xor ecx, ecx
cmp dword [0x101e3b44], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x100baaaa
push 0
push 0x101e3b34
lea eax, [ebp - 0x68]
push eax
call fcn.1014abe0
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
je 0x100ba9ce
cmp dword [ebp - 0x6c], 1
je 0x100ba9ce
mov dword [ebp - 0xbc], 1
jmp 0x100ba9d8
mov dword [ebp - 0xbc], 0
movzx edx, byte [ebp - 0xbc]
test edx, edx
jne 0x100baaaa
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x101e3b34
call fcn.100c2030
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x14], 0x10
jb 0x100baa21
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov dword [ebp - 0xc4], ecx
jmp 0x100baa2a
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0xc4], edx
push 0
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x49], al
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10042350
mov byte [ebp - 4], 0
movzx ecx, byte [ebp - 0x49]
test ecx, ecx
je 0x100baaaa
xor edx, edx
mov word [ebp - 0x82], dx
mov dword [0x101e3b44], 0
cmp dword [0x101e3b48], 8
jb 0x100baa8b
mov eax, dword [0x101e3b34]
mov dword [ebp - 0xc8], eax
jmp 0x100baa95
mov dword [ebp - 0xc8], 0x101e3b34
xor ecx, ecx
shl ecx, 1
mov edx, dword [ebp - 0xc8]
mov ax, word [ebp - 0x82]
mov word [edx + ecx], ax
lea ecx, [ebp - 0x8d]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xcc], edx
mov dword [ebp - 4], 9
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10085cf0
mov eax, dword [0x101a1a18]
push eax
push 0
push 0x101e3b34
mov ecx, dword [ebp + 8]
call fcn.10085bd0
mov dword [ebp - 4], 0xa
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
or ecx, 1
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret