Function at 0x14122c220
Capabilities:
Enumerate network shares

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
xor r12d, r12d
mov dword [rbp + 0x67], r12d
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rcx
mov r8d, 0x5c
mov dword [rsp + 0x20], 1
mov r9d, 1
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x59]
call fcn.1411c7310
nop
mov rbx, 0xffffffffffffffff
cmp qword [rbp - 0x11], 3
jl 0x14122c633
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r12
mov rsi, qword [rbp - 0x19]
mov qword [rbp - 0x49], 2
lea rax, [0x14007a230]
mov qword [rbp - 0x41], rax
mov rdx, qword [rsi + 0x20]
add rdx, 2
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.1411bd870
lea rdi, [0x1400011e0]
mov rax, qword [rbp - 0x31]
test rax, rax
cmovne rdi, rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x59], xmm0
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.1411be8b0
lea rcx, [rdi + 4]
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14122c2fa
add r8, r8
mov rdx, qword [rsi + 0x28]
call fcn.141340f00
nop
mov dword [rbp + 0x67], 2
mov dword [rbp + 0x6f], r12d
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x77], r12d
mov rsi, qword [rbp + 0x67]
lea rcx, [rbp - 0x39]
call fcn.1411c8780
mov rcx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x59]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov r15d, eax
test eax, eax
je 0x14122c35e
cmp eax, 0xea
jne 0x14122c483
mov rdi, qword [rbp - 0x59]
mov r14d, 1
cmp dword [rbp + 0x6f], r14d
jb 0x14122c483
cmp dword [rdi + 8], 0
jne 0x14122c472
mov r8, rbx
mov rdx, qword [rdi]
lea rcx, [rbp + 0xf]
call fcn.1411c24e0
nop
mov rcx, qword [rax]
mov qword [rbp - 9], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 1], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp + 7], rcx
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov eax, dword [rbp + 0x67]
or eax, 0x28
mov dword [rbp + 0x67], eax
test al, 0x10
je 0x14122c3e3
and dword [rbp + 0x67], 0xffffffef
test rsi, rsi
je 0x14122c3e3
mov eax, ebx
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x14122c3e3
mov edx, 2
mov r8d, 8
mov rcx, rsi
call fcn.1411dba10
nop
mov eax, dword [rbp + 0x67]
test al, 8
je 0x14122c417
and dword [rbp + 0x67], 0xfffffff7
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14122c417
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c417
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp + 0xf]
call fcn.1411dba10
nop
lea r8, [rbp - 9]
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 0x79]
call fcn.1411b52a0
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x14122c438
mov eax, dword [rax]
cmp eax, 1
jle 0x14122c44a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x79]
call fcn.1411b4d30
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14122c472
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c472
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 9]
call fcn.1411dba10
add rdi, 0x18
inc r14d
cmp r14d, dword [rbp + 0x6f]
jbe 0x14122c372
mov rcx, qword [rbp - 0x59]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r15d, 0xea
je 0x14122c311
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14122c4c1
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c4c1
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x39]
call fcn.1411dba10
test r15d, r15d
jne 0x14122c5c5
cmp qword [rbp - 0x11], 4
jl 0x14122c51d
mov rdx, qword [rbp - 0x19]
mov r8, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea rcx, [rbp - 0x39]
call fcn.1411bd430
or dword [rbp + 0x67], 0x41
mov rcx, qword [rbp - 0x31]
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rcx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
call fcn.14122cf90
nop
test al, al
jne 0x14122c51d
xor sil, sil
jmp 0x14122c520
mov sil, 1
test byte [rbp + 0x67], 1
je 0x14122c54f
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14122c54f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c54f
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x39]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14122c636
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c636
mov rax, qword [rbp - 0x69]
lea rcx, [rax + rax*2]
mov rdi, qword [rbp - 0x71]
lea r14, [rdi + rcx*8]
cmp rdi, r14
je 0x14122c5af
mov rcx, qword [rdi]
test rcx, rcx
je 0x14122c5a6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c5a6
mov edx, 2
mov r8d, 8
mov rcx, qword [rdi]
call fcn.1411dba10
add rdi, 0x18
cmp rdi, r14
jne 0x14122c580
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 0x79]
call fcn.1411dba10
jmp 0x14122c636
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14122c633
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c633
mov rax, qword [rbp - 0x69]
lea rcx, [rax + rax*2]
mov rdi, qword [rbp - 0x71]
lea rsi, [rdi + rcx*8]
cmp rdi, rsi
je 0x14122c61f
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14122c616
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122c616
mov edx, 2
mov r8d, 8
mov rcx, qword [rdi]
call fcn.1411dba10
add rdi, 0x18
cmp rdi, rsi
jne 0x14122c5f0
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 0x79]
call fcn.1411dba10
xor sil, sil
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14122c65c
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14122c65c
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x21]
call fcn.1411dba10
movzx eax, sil
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret