Function at 0x140108e50
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 0x140108f04
mov edx, 0x1a
lea r8, str.SimConnect
lea rax, [rsp + 0x60]
sub r8, rax
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x140108ef4
movzx eax, byte [r8 + rcx]
test al, al
je 0x140108ef4
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140108ed4
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140108f18
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.140108a60
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140108f25
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 0x140108f60
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 0x140109038
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 0x140108fda
mov dword [r14], 2
cmp qword [rsi + 0x10], 0
jne 0x14010903f
mov rdx, rsi
xor ecx, ecx
call fcn.140108720
jmp 0x14010903f
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 0x140109016
mov dword [r14], reloc.WS2_32.dll_socket
cmp qword [rsi + 0x10], 0
jne 0x14010903f
mov rdx, rsi
mov cl, 1
call fcn.140108720
jmp 0x14010903f
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 0x14010903f
mov dword [r14], 1
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14010904c
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 0x140109080
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 0x1401090cb
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x1401090cb
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 0x1401090d8
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 0x140109110
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 0x14010915b
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x14010915b
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 0x140109168
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 0x1401091a0
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 0x1401091e7
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 0x1401091e7
mov dword [r12], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1401091f4
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 0x140109222
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 0x140109274
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 0x1401092ad
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x1401092a5
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401092a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14010a7a8
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 0x1401092f8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1401092f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010932a
mov rcx, r8
call fcn.14010a7a8
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.14010af80
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