Function at 0x180020a40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx]
mov edx, dword [rcx - 0x10]
cmp edx, 2
jge 0x180020a86
or edi, 0xffffffff
lea rdx, [rcx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180020a7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180020d09
lea r8d, [rdx - 1]
test r8d, r8d
js 0x180020cfe
cmp r8d, edx
jg 0x180020cfe
movsxd rax, r8d
or edi, 0xffffffff
cmp byte [rax + rcx], 0x5c
jne 0x180020aed
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.180023970
nop
mov rdx, rax
mov rcx, rsi
call fcn.180002810
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180020ae7
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 0x180020af6
jmp 0x180020a67
add rcx, 0xffffffffffffffe8
cmp edx, 3
jg 0x180020b52
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.1800209e0
test eax, eax
je 0x180020b46
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180020b3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 1
jmp 0x180020d09
mov rdx, qword [rsi]
sub rdx, 0x18
jmp 0x180020a6b
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1800209e0
test eax, eax
je 0x180020b70
jmp 0x180020b21
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
mov edx, 0x5c
mov rcx, qword [rsi]
call fcn.1800323c0
test rax, rax
jne 0x180020ba3
mov eax, edi
jmp 0x180020ba5
sub eax, dword [rsi]
mov r8d, eax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.180023970
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x180020c16
cmp dword [rbx + 0x10], 0
jl 0x180020c04
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x180020c04
call fcn.180001790
mov rbp, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180020bf6
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.WS2_32.dll_htonl + 8]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x98], rax
jmp 0x180020c16
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x98]
call fcn.180001b40
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180020c35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rsp + 0x98]
cmp dword [rax - 0x10], 0
jg 0x180020c69
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180020c5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, rsi
call fcn.180001630
jmp 0x180020a7f
lea rbx, [rax - 0x18]
mov rcx, rbx
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180020a40
test eax, eax
je 0x180020cd9
mov dword [rsp + 0x40], 0x18
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x40]
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 0x180020ccd
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.180001630
mov eax, ebp
jmp 0x180020d09
lock xadd dword [rbx + 0x10], edi
dec edi
test edi, edi
jg 0x180020cf1
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.180001630
jmp 0x180020a7f
mov ecx, 0x80070057
call fcn.180001050
nop
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret