Function at 0x180005aa0
Capabilities:
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r12, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x88], rdi
mov rax, qword [r12 + 0x50]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x180005afc
mov edx, 0x104
lea rcx, [r12 + 0x50]
call fcn.1800027f0
mov rcx, qword [r12 + 0x50]
call fcn.180016990
test eax, eax
jne 0x180005b6e
mov rcx, qword [r12 + 0x50]
xor ebp, ebp
test rcx, rcx
jne 0x180005b1a
mov eax, ebp
jmp 0x180005b27
movsxd rdx, dword [rcx - 0xc]
call fcn.180034690
test eax, eax
js 0x180005b63
mov rcx, qword [r12 + 0x50]
cmp eax, dword [rcx - 0xc]
jg 0x180005b63
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r12 + 0x50]
mov word [rax + rcx*2], bp
lea rdx, [rdi - 0x18]
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180005b5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180005ebf
mov ecx, 0x80070057
call fcn.180002d30
int3
mov rcx, qword [r12 + 0x50]
xor ebp, ebp
test rcx, rcx
jne 0x180005b7e
mov eax, ebp
jmp 0x180005b8f
movsxd rdx, dword [rcx - 0xc]
call fcn.180034690
test eax, eax
js 0x180005eb4
mov rcx, qword [r12 + 0x50]
cmp eax, dword [rcx - 0xc]
jg 0x180005eb4
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r12 + 0x50]
mov word [rax + rcx*2], bp
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x180005bda
mov edx, 0x104
lea rcx, [rsp + 0x88]
call fcn.1800027f0
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call fcn.1800168f0
test eax, eax
jne 0x180005c32
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.180034690
test eax, eax
js 0x180005c27
cmp eax, dword [rdi - 0xc]
jg 0x180005c27
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bp
lea rdx, [rdi - 0x18]
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180005c20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180005ebf
mov ecx, 0x80070057
call fcn.180002d30
int3
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.180034690
test eax, eax
js 0x180005ea9
cmp eax, dword [rdi - 0xc]
jg 0x180005ea9
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bp
mov rdx, qword [r12 + 0x20]
mov r8d, dword [rdx - 0x10]
lea rcx, [r12 + 0x50]
call fcn.180002500
mov rdx, qword [r12 + 0x20]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x88]
call fcn.180002500
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
lea rdi, str..lnk
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str..lnk
lea rcx, [rsp + 0x88]
call fcn.180002500
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.180003b50
nop
xor edx, edx
mov rcx, qword [r12 + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8d, [rbx + 2]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [r12 + 0x68]
call fcn.18002b710
lea rdx, [rsp + 0x98]
mov rcx, r12
call fcn.180005ef0
nop
lea rax, [0x18006c5a8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rdx, rdi
mov rcx, qword [r12 + 0x40]
call fcn.180012220
test eax, eax
jne 0x180005d8e
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005d44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005d67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180005d87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180005ebf
xor eax, eax
mov rcx, rbx
lea rdi, [0x18006c734]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x18006c734]
lea rcx, [r12 + 0x50]
call fcn.180002500
xor r8d, r8d
mov rdx, qword [r12 + 0x50]
lea rcx, [rsp + 0x40]
call fcn.18002cfd0
nop
mov r9, qword [r12 + 0x48]
mov r8, qword [rax]
lea rdx, [0x18006c738]
lea rcx, str.Share
call fcn.18001d540
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005e03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r12 + 0x38], rax
mov rcx, r12
call fcn.180003a00
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005e5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005e82
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180005ea2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 1
jmp 0x180005ebf
mov ecx, 0x80070057
call fcn.180002d30
int3
mov ecx, 0x80070057
call fcn.180002d30
nop
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret