Function at 0x180039230
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1800d4040]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r12d, r12d
mov edx, dword [0x1800d40e0]
lea rcx, [rsp + 0x40]
call fcn.18001d6d0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
lea r8d, [r12 + 0x19]
lea rdx, str.Selected_port_by_config:
lea rcx, [rbp + 0xa0]
call fcn.18001d5d0
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800b16d8]
lea rcx, [rbp + 0xa0]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
mov r9, rbx
lea r8, [rsp + 0x20]
lea rcx, [rbp + 0x120]
call fcn.18001f200
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800b16d8]
lea rcx, [rbp + 0x120]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1800c2ca0]
movdqu xmmword [rsp + 0x70], xmm1
mov byte [rsp + 0x60], r12b
lea rcx, [rsp + 0x60]
call fcn.18001faf0
lea rcx, [rbp + 0x160]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x120]
call fcn.18001faf0
nop
lea rcx, [rsp + 0x20]
call fcn.18001faf0
nop
lea rcx, [rbp + 0xa0]
call fcn.18001faf0
nop
lea rcx, [rsp + 0x40]
call fcn.18001faf0
lea r14, str.127.0.0.1
mov rdi, r14
cmp qword [0x1800d43c8], 0xf
cmova rdi, qword [str.127.0.0.1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r8d, [r12 + 0x1d]
lea rdx, str.Selected_URL_Host_by_config:
lea rcx, [rsp + 0x60]
call fcn.18001d5d0
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800b16d8]
lea rcx, [rsp + 0x60]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdi + r8], 0
jne 0x180039426
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x1800b16d8]
lea rcx, [rbp - 0x80]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1800c2ca0]
movdqu xmmword [rsp + 0x30], xmm1
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
lea rcx, [rbp + 0x160]
call fcn.18001faf0
nop
lea rcx, [rbp - 0x80]
call fcn.18001faf0
nop
lea rcx, [rbp - 0x60]
call fcn.18001faf0
nop
lea rcx, [rsp + 0x60]
call fcn.18001faf0
mov ecx, 0x202
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r15d, 2
test eax, eax
je 0x180039522
mov edx, eax
lea rcx, str.WSAStartup_function_failed_with_error:__d_n
call fcn.180045d90
jmp 0x180039812
mov word [rbp + 0x140], r15w
mov edi, 0x15db
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x142], ax
lea rcx, [0x1800b2550]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x144], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x18003980c
movsxd rsi, eax
mov r8d, 0x10
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18003980c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lea r9, [rbp + 0x335]
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1800395b0
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x150], xmm1
lea rax, [rbp + 0x335]
cmp r9, rax
jne 0x180039611
movdqa xmm0, xmmword [0x1800c2ca0]
movdqu xmmword [rbp + 0x150], xmm0
mov byte [rbp + 0x140], dl
jmp 0x18003962b
lea r8, [rbp + 0x335]
sub r8, r9
mov rdx, r9
lea rcx, [rbp + 0x140]
call fcn.18001d5d0
nop
lea rdi, [rbp + 0x140]
cmp qword [rbp + 0x158], 0xf
cmova rdi, qword [rbp + 0x140]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
mov r8d, 1
lea rdx, [0x1800b16d8]
lea rcx, [rbp + 0xc0]
call fcn.18001d5d0
nop
mov r9d, reloc.WS2_32.dll_socket
lea r8, str.Found_Backend_on_Port:
xor edx, edx
lea rcx, [rbp + 0xc0]
call fcn.18001d990
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1800396c0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, r15
lea rdx, [0x1800b8e18]
lea rcx, [rbp - 0x40]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x40]
call fcn.18001faf0
nop
lea rcx, [rbp - 0x20]
call fcn.18001faf0
nop
lea rcx, [rbp + 0xc0]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x140]
call fcn.18001faf0
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.18001ed20
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1800c2ca0]
movdqu xmmword [rsp + 0x30], xmm1
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
mov rcx, rbx
call fcn.18001faf0
mov rax, qword [0x1800d43e8]
lea rcx, [0x1800d43d0]
cmp rax, 4
jb 0x1800397e1
cmp rax, 0xf
cmova rcx, qword [0x1800d43d0]
mov qword [0x1800d43e0], 4
mov dword [rcx], 0x35393535
mov byte [rcx + 4], 0
jmp 0x1800397f2
lea r9, str.5595
mov edx, 4
call fcn.18000eec0
mov byte [0x1800d65d8], 1
lea rcx, [rbp + 0x160]
call fcn.18001faf0
mov al, 1
jmp 0x180039df9
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x202
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18003983b
mov edx, eax
lea rcx, str.WSAStartup_function_failed_with_error:__d_n
call fcn.180045d90
jmp 0x180039b22
mov word [rbp + 0x140], r15w
mov edi, 0xddf
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x142], ax
lea rcx, [0x1800b2550]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x144], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x180039b1c
movsxd rsi, eax
mov r8d, 0x10
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180039b1c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
lea r9, [rbp + 0x34d]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1800398c0
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x150], xmm1
lea rax, [rbp + 0x34d]
cmp r9, rax
jne 0x180039921
movdqa xmm0, xmmword [0x1800c2ca0]
movdqu xmmword [rbp + 0x150], xmm0
mov byte [rbp + 0x140], dl
jmp 0x18003993b
lea r8, [rbp + 0x34d]
sub r8, r9
mov rdx, r9
lea rcx, [rbp + 0x140]
call fcn.18001d5d0
nop
lea rdi, [rbp + 0x140]
cmp qword [rbp + 0x158], 0xf
cmova rdi, qword [rbp + 0x140]
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
mov r8d, 1
lea rdx, [0x1800b16d8]
lea rcx, [rbp + 0xe0]
call fcn.18001d5d0
nop
mov r9d, reloc.WS2_32.dll_socket
lea r8, str.Found_Backend_on_Port:
xor edx, edx
lea rcx, [rbp + 0xe0]
call fcn.18001d990
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1800399d0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, r15
lea rdx, [0x1800b8e18]
lea rcx, [rbp]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x20]
call fcn.18001faf0
nop
lea rcx, [rbp + 0xe0]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x140]
call fcn.18001faf0
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.18001ed20
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1800c2ca0]
movdqu xmmword [rsp + 0x30], xmm1
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
mov rcx, rbx
call fcn.18001faf0
mov rax, qword [0x1800d43e8]
lea rcx, [0x1800d43d0]
cmp rax, 4
jb 0x180039af1
cmp rax, 0xf
cmova rcx, qword [0x1800d43d0]
mov qword [0x1800d43e0], 4
mov dword [rcx], 0x31353533
mov byte [rcx + 4], 0
jmp 0x180039b02
lea r9, str.3551
mov edx, 4
call fcn.18000eec0
mov byte [0x1800d65d8], 1
lea rcx, [rbp + 0x160]
call fcn.18001faf0
mov al, 1
jmp 0x180039df9
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp qword [0x1800d43c8], 0xf
cmova r14, qword [str.127.0.0.1]
movzx edi, word [0x1800d40e0]
mov ecx, 0x202
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180039b62
mov edx, eax
lea rcx, str.WSAStartup_function_failed_with_error:__d_n
call fcn.180045d90
jmp 0x180039da0
mov word [rbp + 0x140], r15w
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x142], ax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x144], eax
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x180039d9a
movsxd rdi, eax
mov r8d, 0x10
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180039d9a
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x1800d40e0]
lea rcx, [rbp + 0x80]
call fcn.18001d6d0
mov rdi, rax
cmp qword [rax + 0x18], 0xf
jbe 0x180039bf2
mov rdi, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r8d, 1
lea rdx, [0x1800b16d8]
lea rcx, [rbp + 0x100]
call fcn.18001d5d0
nop
mov r9d, reloc.WS2_32.dll_socket
lea r8, str.Found_Backend_on_Port:
xor edx, edx
lea rcx, [rbp + 0x100]
call fcn.18001d990
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x180039c70
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.18001f5f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8, r15
lea rdx, [0x1800b8e18]
lea rcx, [rbp + 0x40]
call fcn.18001f5f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp + 0x40]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x60]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x100]
call fcn.18001faf0
nop
lea rcx, [rbp + 0x80]
call fcn.18001faf0
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.18001ed20
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1800c2ca0]
movdqu xmmword [rsp + 0x30], xmm1
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18001faf0
mov rcx, rbx
call fcn.18001faf0
mov edx, dword [0x1800d40e0]
lea rcx, [rsp + 0x40]
call fcn.18001d6d0
mov rdx, rax
lea rcx, [0x1800d43d0]
call fcn.18001f6e0
lea rcx, [rsp + 0x40]
call fcn.18001faf0
mov byte [0x1800d65d8], 1
lea rcx, [rbp + 0x160]
call fcn.18001faf0
mov al, 1
jmp 0x180039df9
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [0x1800d65d8], 0
jne 0x180039df7
lea rdx, str.Couldnt_find_the_set_Port_
lea rcx, [rbp + 0x80]
call fcn.18001fa20
xor edx, edx
mov rcx, rax
call fcn.18004f1f0
lea rdx, str.No_backend_found___nPlease_make_sure_the_backend_is_listening_to_port_5595___3551_or_check_the_CraniumV1_Settings_file_for_the_custom_Port_setting._n_nCarbon_provides_NeoniteV2_pre_installed_with_the_ZIP_File._nExecute_the_Start_Neonite_file_and_try_again___nInside_If_you_still_experience_issues_contact_support.
lea rcx, [rbp + 0x80]
call fcn.18001fa20
mov dl, 1
mov rcx, rax
call fcn.18004f1f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
xor al, al
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.180086e20
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret