Function at 0x140108320
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 [0x140153440]
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 0x140108610
cmp ecx, 1
jne 0x1401086f3
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 0x140108384
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067380
nop
cmp qword [rbp - 0x21], 0
jne 0x1401083ba
lea rsi, [0x140116240]
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067380
lea rdx, [0x1401181e2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140108410
mov rdx, qword [rbp - 0x21]
add rdx, 0x30
lea rcx, [rbp - 0x31]
call fcn.1400a5560
cmp qword [rbp - 0x21], 0
jbe 0x140108717
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.140108a60
jmp 0x140108490
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140108410
mov rdi, qword [rbp - 0x21]
lea rcx, [rdi + 0xd]
add rcx, rbx
mov rax, qword [rbp - 0x19]
cmp rdi, rcx
ja 0x140108453
cmp rax, rcx
je 0x140108453
jae 0x140108505
sub rcx, rdi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.1400acea0
mov qword [rbp - 0x21], rdi
mov rax, qword [rbp - 0x19]
mov edx, 0x100
cmp rax, rdx
jae 0x140108460
mov rdx, rax
test rdi, rdi
je 0x140108717
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.140108a60
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 0x140108576
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1401085c9
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 0x1401085c9
jmp 0x140108490
cmp rcx, 0x10
jae 0x140108453
cmp rax, 0x10
jb 0x140108453
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 0x140108555
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14010856f
mov rbx, rcx
mov rcx, rbx
call fcn.14010a7a8
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x19], rax
mov rdi, qword [rbp - 0x21]
jmp 0x14010845d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
lea rdx, [0x1401097f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x1401085c2
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.140109ae0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.140109d40
xor r13b, r13b
jmp 0x1401085c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1401086f3
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108606
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140108606
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a7a8
jmp 0x1401086f3
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 0x1401086f3
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x1401086f3
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 0x1401086e9
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 0x1401086e9
xor r8d, r8d
lea rdx, [0x1401097f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x1401086e9
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.140109ae0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.140109d40
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.14010af80
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a0620
nop
int3