Function at 0x140109270
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 [0x140154440]
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 0x140109560
cmp ecx, 1
jne 0x140109643
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x31], r12b
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rsi + r8], r12b
jne 0x1401092d4
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067390
nop
cmp qword [rbp - 0x21], 0
jne 0x14010930a
lea rsi, [0x140117280]
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067390
lea rdx, [0x140119222]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140109360
mov rdx, qword [rbp - 0x21]
add rdx, 0x30
lea rcx, [rbp - 0x31]
call fcn.1400a7010
cmp qword [rbp - 0x21], 0
jbe 0x140109667
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.1401099b0
jmp 0x1401093e0
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140109360
mov rdi, qword [rbp - 0x21]
lea rcx, [rdi + 0xd]
add rcx, rbx
mov rax, qword [rbp - 0x19]
cmp rdi, rcx
ja 0x1401093a3
cmp rax, rcx
je 0x1401093a3
jae 0x140109455
sub rcx, rdi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.1400aeb10
mov qword [rbp - 0x21], rdi
mov rax, qword [rbp - 0x19]
mov edx, 0x100
cmp rax, rdx
jae 0x1401093b0
mov rdx, rax
test rdi, rdi
je 0x140109667
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.1401099b0
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 0x1401094c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140109519
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 0x140109519
jmp 0x1401093e0
cmp rcx, 0x10
jae 0x1401093a3
cmp rax, 0x10
jb 0x1401093a3
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 0x1401094a5
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1401094bf
mov rbx, rcx
mov rcx, rbx
call fcn.14010b6e8
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x19], rax
mov rdi, qword [rbp - 0x21]
jmp 0x1401093ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
lea rdx, [0x14010a740]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140109512
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.14010aa30
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.14010ac90
xor r13b, r13b
jmp 0x140109519
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140109643
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140109556
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140109556
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010b6e8
jmp 0x140109643
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 0x140109643
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140109643
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 0x140109639
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 0x140109639
xor r8d, r8d
lea rdx, [0x14010a740]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140109639
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.14010aa30
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.14010ac90
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.14010bec0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a1f90
nop
int3