Function at 0x140037380
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 [0x140056048]
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]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], shutdown
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x60]
test edx, edx
jne 0x140037440
mov edx, 0x1a
lea r8, str.SimConnect
lea rax, [rsp + 0x60]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x140037430
movzx eax, byte [r8 + rcx]
test al, al
je 0x140037430
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140037410
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140037454
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.140036f40
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140037461
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1400437db]
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 0x1400374a0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140024180
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 0x140037578
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 0x14003751a
mov dword [r14], 2
cmp qword [rsi + 0x10], 0
jne 0x14003757f
mov rdx, rsi
xor ecx, ecx
call fcn.140036bf0
jmp 0x14003757f
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 0x140037556
mov dword [r14], reloc.WS2_32.dll_socket
cmp qword [rsi + 0x10], 0
jne 0x14003757f
mov rdx, rsi
mov cl, 1
call fcn.140036bf0
jmp 0x14003757f
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 0x14003757f
mov dword [r14], 1
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003758c
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1400437db]
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 0x1400375c0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140024180
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14003760b
lea rax, [rsp + 0x40]
cmp r15, rax
je 0x14003760b
lea rdx, [rsp + 0x40]
cmp r10, 0x10
cmovae rdx, r9
mov rcx, r15
call fcn.140024180
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140037618
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1400437db]
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 0x140037650
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140024180
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14003769b
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x14003769b
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
mov rcx, rsi
call fcn.140024180
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400376a8
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1400437db]
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 0x1400376e0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140024180
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x140037727
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 0x140037727
mov dword [r12], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140037734
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp - 0x80]
lea r8, [0x1400437db]
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 0x140037762
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140024180
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 0
je 0x1400377b4
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 0x1400377ed
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x1400377e5
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400377e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14003c550
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], shutdown
mov byte [rsp + 0x40], dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140037838
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140037833
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003786a
mov rcx, r8
call fcn.14003c550
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], shutdown
mov byte [rbx], 0
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14003c530
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