Function at 0x18000b060
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx]
mov edx, dword [rcx - 0x10]
cmp edx, 2
jge 0x18000b0a9
or edi, 0xffffffff
lea rdx, [rcx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b0a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x18000b449
lea r8d, [rdx - 1]
test r8d, r8d
js 0x18000b43e
cmp r8d, edx
jg 0x18000b43e
movsxd rax, r8d
or edi, 0xffffffff
cmp byte [rax + rcx], 0x5c
jne 0x18000b10a
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.18000bda0
nop
mov rdx, rax
mov rcx, rsi
call fcn.1800022e0
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b104
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsi]
mov edx, dword [rcx - 0x10]
test edx, edx
jg 0x18000b113
jmp 0x18000b08a
add rcx, 0xffffffffffffffe8
cmp edx, 3
jg 0x18000b169
call fcn.1800013c0
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.18000b000
test eax, eax
je 0x18000b15d
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b153
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 1
jmp 0x18000b449
mov rdx, qword [rsi]
sub rdx, 0x18
jmp 0x18000b08e
call fcn.1800013c0
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.18000b000
test eax, eax
je 0x18000b187
jmp 0x18000b138
lea rcx, [0x180037078]
mov rax, qword [0x180037078]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xc8], rbx
mov edx, 0x5c
mov rcx, qword [rsi]
call fcn.1800118ac
test rax, rax
jne 0x18000b1ba
mov eax, edi
jmp 0x18000b1bc
sub eax, dword [rsi]
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.18000bda0
nop
mov r10, qword [rax]
mov qword [rsp + 0x20], r10
lea rcx, [r10 - 0x18]
lea rbp, [rbx - 0x18]
cmp rcx, rbp
je 0x18000b356
cmp dword [rbp + 0x10], 0
jl 0x18000b221
mov rax, qword [rbp]
cmp qword [rcx], rax
jne 0x18000b221
call fcn.1800013c0
mov rbx, rax
mov ecx, edi
lock xadd dword [rbp + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18000b218
mov rcx, qword [rbp]
mov r8, qword [rcx]
mov rdx, rbp
call qword [rreloc.WS2_32.dll_htonl + 8]
lea rax, [rbx + 0x18]
jmp 0x18000b34e
mov edx, dword [r10 - 0x10]
mov dword [rsp + 0xb8], edx
test edx, edx
jne 0x18000b298
mov rcx, qword [rbp]
mov qword [rsp + 0xb8], rcx
cmp dword [rbp + 8], edx
je 0x18000b356
cmp dword [rbp + 0x10], edx
jge 0x18000b267
cmp dword [rbx - 0xc], edx
jge 0x18000b25a
mov ecx, 0x80070057
call fcn.180001050
int3
xor ebp, ebp
mov dword [rbx - 0x10], ebp
mov byte [rbx], bpl
jmp 0x18000b358
mov eax, edi
lock xadd dword [rbp + 0x10], eax
dec eax
test eax, eax
jg 0x18000b289
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
jmp 0x18000b34e
test r10, r10
jne 0x18000b2a8
mov ecx, 0x80070057
call fcn.180001050
int3
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0xc0], eax
mov r8, r10
sub r8, rbx
mov qword [rsp + 0x50], r8
test edx, edx
jns 0x18000b2cc
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 1
sub ecx, dword [rbp + 0x10]
mov eax, dword [rbp + 0xc]
sub eax, edx
or eax, ecx
jge 0x18000b303
lea rcx, [rsp + 0xc8]
call fcn.1800016f0
mov rbx, qword [rsp + 0xc8]
mov edx, dword [rsp + 0xb8]
mov r8, qword [rsp + 0x50]
mov r10, qword [rsp + 0x20]
mov eax, dword [rsp + 0xc0]
movsxd rbp, edx
mov rcx, rbx
movsxd rdx, dword [rbx - 0xc]
mov r9, rbp
cmp r8, rax
ja 0x18000b326
add r8, rbx
call fcn.180010150
jmp 0x18000b32e
mov r8, r10
call fcn.180010694
mov eax, dword [rsp + 0xb8]
cmp eax, dword [rbx - 0xc]
jg 0x18000b343
mov dword [rbx - 0x10], eax
mov byte [rbx + rbp], 0
jmp 0x18000b356
mov ecx, 0x80070057
call fcn.180001050
int3
mov qword [rsp + 0xc8], rax
xor ebp, ebp
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b377
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rsp + 0xc8]
cmp dword [rax - 0x10], 0
jg 0x18000b3ab
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b39e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, rsi
call fcn.18000e080
jmp 0x18000b0a2
lea rbx, [rax - 0x18]
mov rcx, rbx
call fcn.1800013c0
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.18000b060
test eax, eax
je 0x18000b419
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
sete bpl
lock xadd dword [rbx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b40d
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
mov rcx, rsi
call fcn.18000e080
mov eax, ebp
jmp 0x18000b449
lock xadd dword [rbx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b431
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, rsi
call fcn.18000e080
jmp 0x18000b0a2
mov ecx, 0x80070057
call fcn.180001050
nop
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret