Function at 0x1400367e0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x88
mov rax, qword [0x140056048]
xor rax, rsp
mov qword [rbp - 1], rax
mov r14, r9
mov rsi, r8
mov r15, rcx
mov r13b, 1
mov ecx, dword [rcx + 0x24]
test ecx, ecx
je 0x140036ae0
cmp ecx, 1
jne 0x140036bc3
xor r12d, r12d
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], shutdown
mov byte [rbp - 0x31], r12b
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rsi + r8], r12b
jne 0x140036850
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140024180
nop
cmp qword [rbp - 0x21], 0
jne 0x140036886
lea rsi, [0x140042d6c]
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140024180
lea rdx, [0x1400437db]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400368e0
mov rdx, qword [rbp - 0x21]
add rdx, 0x30
lea rcx, [rbp - 0x31]
call fcn.140037880
cmp qword [rbp - 0x21], 0
jbe 0x140036be7
lea rcx, [rbp - 0x31]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x31]
mov r9, rsi
lea r8, str._spipeMicrosoft_Flight_SimulatorSimConnect
call fcn.140036f40
jmp 0x140036960
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1400368e0
mov rdi, qword [rbp - 0x21]
lea rcx, [rdi + 0xd]
add rcx, rbx
mov rax, qword [rbp - 0x19]
cmp rdi, rcx
ja 0x140036923
cmp rax, rcx
je 0x140036923
jae 0x1400369d5
sub rcx, rdi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.140034ff0
mov qword [rbp - 0x21], rdi
mov rax, qword [rbp - 0x19]
mov edx, 0x100
cmp rax, rdx
jae 0x140036930
mov rdx, rax
test rdi, rdi
je 0x140036be7
lea rcx, [rbp - 0x31]
cmp rax, 0x10
cmovae rcx, qword [rbp - 0x31]
mov qword [rsp + 0x20], r14
mov r9, rsi
lea r8, str._spipe_s
call fcn.140036f40
nop word [rax + rax]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140036a46
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140036a99
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x140036a99
jmp 0x140036960
cmp rcx, 0x10
jae 0x140036923
cmp rax, 0x10
jb 0x140036923
mov rbx, qword [rbp - 0x31]
lea r8, [rdi + 1]
mov rdx, rbx
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x19]
inc rdx
cmp rdx, 0x1000
jb 0x140036a25
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140036a3f
mov rbx, rcx
mov rcx, rbx
call fcn.14003c550
mov eax, 0xf
mov qword [rbp - 0x19], rax
mov rdi, qword [rbp - 0x21]
jmp 0x14003692d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
lea rdx, [0x140037de0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140036a92
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, r15
call fcn.1400380e0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
mov rcx, r15
call fcn.140038340
xor r13b, r13b
jmp 0x140036a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140036bc3
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036ad6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ad6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c550
jmp 0x140036bc3
xor r12d, r12d
mov dword [rbp - 0x31], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x39], r12
mov dword [rbp - 0x2d], edx
mov dword [rbp - 0x29], 1
mov dword [rbp - 0x25], 6
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140036bc3
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140036bc3
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036bb9
mov rdx, qword [rbp - 0x39]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140036bb9
xor r8d, r8d
lea rdx, [0x140037de0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140036bb9
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp - 0x39]
mov r9d, dword [rax + 4]
mov r8, rbx
movzx edx, r13b
mov rcx, r15
call fcn.1400380e0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
mov rcx, r15
call fcn.140038340
xor r13b, r13b
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx eax, r13b
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14003c530
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400246c0
nop
int3