Function at 0x140109da0
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 [0x140154440]
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 0x140109e54
mov edx, 0x1a
lea r8, str.SimConnect
lea rax, [rsp + 0x60]
sub r8, rax
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x140109e44
movzx eax, byte [r8 + rcx]
test al, al
je 0x140109e44
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140109e24
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140109e68
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.1401099b0
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140109e75
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x140119222]
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 0x140109eb0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067390
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 0x140109f88
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 0x140109f2a
mov dword [r14], 2
cmp qword [rsi + 0x10], 0
jne 0x140109f8f
mov rdx, rsi
xor ecx, ecx
call fcn.140109670
jmp 0x140109f8f
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 0x140109f66
mov dword [r14], reloc.WS2_32.dll_socket
cmp qword [rsi + 0x10], 0
jne 0x140109f8f
mov rdx, rsi
mov cl, 1
call fcn.140109670
jmp 0x140109f8f
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 0x140109f8f
mov dword [r14], 1
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140109f9c
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x140119222]
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 0x140109fd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14010a01b
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x14010a01b
lea rdx, [rsp + 0x40]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, r15
call fcn.140067390
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14010a028
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x140119222]
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 0x14010a060
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14010a0ab
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x14010a0ab
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
mov rcx, rsi
call fcn.140067390
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14010a0b8
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x140119222]
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 0x14010a0f0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x14010a137
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 0x14010a137
mov dword [r12], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14010a144
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x140119222]
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 0x14010a172
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x14010a1c4
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 0x14010a1fd
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14010a1f5
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010a1f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14010b6e8
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 0x14010a248
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14010a243
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010a27a
mov rcx, r8
call fcn.14010b6e8
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.14010bec0
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