Function at 0x140108eb0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x798]
sub rsp, 0x898
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov r15, r9
mov r14, r8
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov rsi, qword [rbp + 0x800]
mov r12, qword [rbp + 0x808]
mov r13, qword [rbp + 0x810]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x60]
test edx, edx
jne 0x140108f64
mov edx, 0x1a
lea r8, str.SimConnect
lea rax, [rsp + 0x60]
sub r8, rax
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x140108f54
movzx eax, byte [r8 + rcx]
test al, al
je 0x140108f54
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140108f34
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140108f78
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.140108ac0
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140108f85
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1401181e2]
lea rdx, str.Protocol
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rbp - 0x80]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140108fc0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067380
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, str.Auto
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140109098
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, str.IPv4
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14010903a
mov dword [r14], 2
cmp qword [rsi + 0x10], 0
jne 0x14010909f
mov rdx, rsi
xor ecx, ecx
call fcn.140108780
jmp 0x14010909f
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, str.IPv6
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140109076
mov dword [r14], reloc.WS2_32.dll_socket
cmp qword [rsi + 0x10], 0
jne 0x14010909f
mov rdx, rsi
mov cl, 1
call fcn.140108780
jmp 0x14010909f
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, str.Pipe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14010909f
mov dword [r14], 1
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401090ac
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1401181e2]
lea rdx, str.Address
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rbp - 0x80]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1401090e0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14010912b
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x14010912b
lea rdx, [rsp + 0x40]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, r15
call fcn.140067380
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140109138
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1401181e2]
lea rdx, str.Port
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rbp - 0x80]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140109170
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x1401091bb
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x1401091bb
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
mov rcx, rsi
call fcn.140067380
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401091c8
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1401181e2]
lea rdx, str.MaxReceiveSize
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rbp - 0x80]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140109200
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x140109247
lea rcx, [rsp + 0x40]
cmp r8, 0x10
cmovae rcx, rdx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, dword [r12]
jbe 0x140109247
mov dword [r12], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140109254
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1401181e2]
lea rdx, str.DisableNagle
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rbp - 0x80]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140109282
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x1401092d4
lea rcx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rcx, r8
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
setne al
mov byte [r13], al
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14010930d
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140109305
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140109305
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14010a808
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140109358
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140109353
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010938a
mov rcx, r8
call fcn.14010a808
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x898
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3