Function at 0x140030190
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
pxor xmm0, xmm0
mov rdi, qword [rsp + 0x208]
cmp qword [rdx + 8], 0
mov r12d, dword [rsp + 0x1f8]
mov rbp, qword [rsp + 0x200]
mov r14, qword [rdi + 8]
mov rax, rcx
movaps xmmword [rsp + 0x80], xmm0
mov ecx, dword [rsp + 0x1f0]
mov dword [rsp + 0x88], 1
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
je 0x140030b50
mov rsi, qword [rdx]
mov ecx, 4
mov ebx, r8d
mov r13d, r8d
mov dword [rsp + 0x80], ecx
shr ebx, 0x1f
neg r13d
cmovs r13d, r8d
mov r8d, ebx
movzx ebx, bl
cmp r13d, 9
jbe 0x140030bd0
cmp r13d, 0x63
jbe 0x140030802
cmp r13d, 0x3e7
jbe 0x140030c02
cmp r13d, 0x270f
jbe 0x140030c12
mov eax, 5
cmp r13d, 0x1869f
jbe 0x140030ae5
cmp r13d, 0xf423f
jbe 0x140030c22
mov r15d, 6
mov eax, 7
cmp r13d, 0x98967f
jbe 0x140030ae9
cmp r13d, 0x5f5e0ff
jbe 0x140030bc0
cmp r13d, 0x3b9ac9ff
jbe 0x140030ae0
mov r15d, 9
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x60]
lea edx, [r15 + r8 + 1]
mov r8d, 0x2d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_construct_unsigned_long_long__char_
add rbx, qword [rsp + 0x60]
movabs rax, 0x3330323031303030
movabs rdx, 0x3730363035303430
mov qword [rsp + 0xb0], rax
movabs rax, 0x3131303139303830
mov qword [rsp + 0xb8], rdx
movabs rdx, 0x3531343133313231
mov qword [rsp + 0xc0], rax
movabs rax, 0x3931383137313631
mov qword [rsp + 0xc8], rdx
movabs rdx, 0x3332323231323032
mov qword [rsp + 0xd0], rax
movabs rax, 0x3732363235323432
mov qword [rsp + 0xd8], rdx
movabs rdx, 0x3133303339323832
mov qword [rsp + 0xe0], rax
movabs rax, 0x3533343333333233
mov qword [rsp + 0xe8], rdx
movabs rdx, 0x3933383337333633
mov qword [rsp + 0xf0], rax
movabs rax, 0x3334323431343034
mov qword [rsp + 0xf8], rdx
movabs rdx, 0x3734363435343434
mov qword [rsp + 0x100], rax
movabs rax, 0x3135303539343834
mov qword [rsp + 0x108], rdx
movabs rdx, 0x3535343533353235
mov qword [rsp + 0x110], rax
movabs rax, 0x3935383537353635
mov qword [rsp + 0x118], rdx
movabs rdx, 0x3336323631363036
mov qword [rsp + 0x120], rax
movabs rax, 0x3736363635363436
mov qword [rsp + 0x128], rdx
movabs rdx, 0x3137303739363836
mov qword [rsp + 0x130], rax
movabs rax, 0x3537343733373237
mov qword [rsp + 0x138], rdx
movabs rdx, 0x3937383737373637
mov qword [rsp + 0x140], rax
movabs rax, 0x3338323831383038
mov qword [rsp + 0x148], rdx
movabs rdx, 0x3738363835383438
mov qword [rsp + 0x150], rax
movabs rax, 0x3139303939383838
mov qword [rsp + 0x158], rdx
movabs rdx, 0x3539343933393239
mov qword [rsp + 0x168], rdx
movabs rdx, 0x39393839373936
mov qword [rsp + 0x160], rax
movabs rax, 0x3935393439333932
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rdx
nop word [rax + rax]
mov edx, r13d
mov eax, r13d
imul rdx, rdx, 0x51eb851f
shr rdx, 0x25
imul ecx, edx, 0x64
sub eax, ecx
mov ecx, r13d
mov r13d, edx
mov edx, r15d
add eax, eax
lea r8d, [rax + 1]
movzx r8d, byte [rsp + r8 + 0xb0]
mov byte [rbx + rdx], r8b
movzx eax, byte [rsp + rax + 0xb0]
lea edx, [r15 - 1]
sub r15d, 2
mov byte [rbx + rdx], al
cmp ecx, 0x270f
ja 0x1400304b0
cmp ecx, 0x3e7
ja 0x140030a08
add r13d, 0x30
mov byte [rbx], r13b
lea r9, [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
lea r8, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140030a6c
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140030a63
mov r15, qword [sym.imp.WS2_32.dll_WSASocketW]
mov r13, qword [sym.imp.WSOCK32.dll_ioctlsocket]
test r12b, r12b
jne 0x14003077c
nop dword [rax + rax]
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
xor r9d, r9d
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
call r15
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030ab8
cmp qword [rbp + 0x10], 0
je 0x1400305aa
mov qword [rsp + 0xb0], rbx
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call qword [rbp + 0x18]
cmp dword [rsi + 4], 0x17
je 0x140030a80
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
mov r12, r13
mov dword [rsp + 0x48], 1
call r13
mov rdx, qword [rsi + 0x20]
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
js 0x140030a30
mov dword [rsp + 0x4c], 0
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov rcx, rbx
call r12
mov rax, qword [rdi + 0x20]
mov rsi, qword [sym.imp.WSOCK32.dll_setsockopt]
lea r9, [rsp + 0x50]
imul r8d, dword [rax], 0x3e8
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rcx, 0x3f
sar rdx, 7
sub rdx, rcx
mov rcx, rbx
add r8d, edx
mov edx, 0xffff
mov dword [rsp + 0x50], r8d
mov r8d, 0x1006
call rsi
mov rax, qword [rdi + 0x30]
lea r9, [rsp + 0x54]
imul r8d, dword [rax], 0x3e8
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 4
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rcx, 0x3f
sar rdx, 7
sub rdx, rcx
mov rcx, rbx
add r8d, edx
mov edx, 0xffff
mov dword [rsp + 0x54], r8d
mov r8d, 0x1005
call rsi
mov dword [r14], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x30]
cmp rcx, rax
je 0x1400306d4
mov rax, qword [rsp + 0x70]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rax, rbx
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], 4
mov r9, r12
mov r8d, 0x1b
mov rcx, rbx
mov dword [rsp + 0xb0], 0
mov edx, 0x29
call qword [sym.imp.WSOCK32.dll_setsockopt]
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
mov r12, r13
mov dword [rsp + 0x48], 1
call r13
mov rdx, qword [rsi + 0x20]
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jns 0x1400305e8
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140030b98
mov dword [r14], 2
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x140030a5e
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
xor r9d, r9d
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
call r15
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030b70
lea r12, [rsp + 0xb0]
mov r8d, 1
mov edx, 6
mov rcx, rbx
mov dword [rsp + 0xb0], 1
mov r9, r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.dll_setsockopt]
cmp qword [rbp + 0x10], 0
je 0x1400307f3
mov qword [rsp + 0xb0], rbx
mov rdx, r12
mov rcx, rbp
call qword [rbp + 0x18]
cmp dword [rsi + 4], 0x17
jne 0x14003071a
jmp 0x1400306f0
lea rax, [rsp + 0x70]
lea edx, [r8 + 2]
mov r8d, 0x2d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], rcx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_construct_unsigned_long_long__char_
add rbx, qword [rsp + 0x60]
movabs rax, 0x3330323031303030
movabs rdx, 0x3730363035303430
mov qword [rsp + 0xb0], rax
movabs rax, 0x3131303139303830
mov qword [rsp + 0xb8], rdx
movabs rdx, 0x3531343133313231
mov qword [rsp + 0xc0], rax
movabs rax, 0x3931383137313631
mov qword [rsp + 0xc8], rdx
movabs rdx, 0x3332323231323032
mov qword [rsp + 0xd0], rax
movabs rax, 0x3732363235323432
mov qword [rsp + 0xd8], rdx
movabs rdx, 0x3133303339323832
mov qword [rsp + 0xe0], rax
movabs rax, 0x3533343333333233
mov qword [rsp + 0xe8], rdx
movabs rdx, 0x3933383337333633
mov qword [rsp + 0xf0], rax
movabs rax, 0x3334323431343034
mov qword [rsp + 0xf8], rdx
movabs rdx, 0x3734363435343434
mov qword [rsp + 0x100], rax
movabs rax, 0x3135303539343834
mov qword [rsp + 0x108], rdx
movabs rdx, 0x3535343533353235
mov qword [rsp + 0x110], rax
movabs rax, 0x3935383537353635
mov qword [rsp + 0x118], rdx
movabs rdx, 0x3336323631363036
mov qword [rsp + 0x120], rax
movabs rax, 0x3736363635363436
mov qword [rsp + 0x128], rdx
movabs rdx, 0x3137303739363836
mov qword [rsp + 0x130], rax
movabs rax, 0x3537343733373237
mov qword [rsp + 0x138], rdx
movabs rdx, 0x3937383737373637
mov qword [rsp + 0x140], rax
movabs rax, 0x3338323831383038
mov qword [rsp + 0x148], rdx
movabs rdx, 0x3738363835383438
mov qword [rsp + 0x150], rax
movabs rax, 0x3139303939383838
mov qword [rsp + 0x158], rdx
movabs rdx, 0x3539343933393239
mov qword [rsp + 0x168], rdx
movabs rdx, 0x39393839373936
mov qword [rsp + 0x160], rax
movabs rax, 0x3935393439333932
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rdx
nop dword [rax + rax]
add r13d, r13d
lea eax, [r13 + 1]
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rbx + 1], al
movzx r13d, byte [rsp + r13 + 0xb0]
jmp 0x14003050d
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140030b20
mov dword [r14], 2
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140030560
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, 0xffffffffffffffff
jmp 0x1400306b7
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov edx, 0x29
mov rcx, rbx
mov dword [rsp + 0xb0], 0
lea r9, [rsp + 0xb0]
call qword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x1400305b4
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
mov r8d, dword [rsi + 0xc]
call qword [sym.imp.WSOCK32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003058d
jmp 0x140030a51
mov eax, 9
lea r15d, [rax - 1]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x60], rdx
lea edx, [r8 + rax]
mov r8d, 0x2d
mov qword [rsp + 0x38], rcx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_construct_unsigned_long_long__char_
add rbx, qword [rsp + 0x60]
jmp 0x1400302d3
mov rax, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
mov rdx, qword [rdx]
mov r8, qword [rax]
call method.httplib::detail.wait_until_socket_is_ready_unsigned_long_long__long_long__long_long_
mov dword [r14], eax
test eax, eax
je 0x1400305e8
jmp 0x140030a48
xor esi, esi
cmp qword [rax + 8], 0
je 0x140030b5c
mov rsi, qword [rax]
mov dword [rsp + 0x84], r9d
jmp 0x140030203
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
mov r8d, dword [rsi + 0xc]
call qword [sym.imp.WSOCK32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400307a9
jmp 0x14003076f
mov rax, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
mov rdx, qword [rdx]
mov r8, qword [rax]
call method.httplib::detail.wait_until_socket_is_ready_unsigned_long_long__long_long__long_long_
mov dword [r14], eax
test eax, eax
je 0x1400305e8
jmp 0x140030766
mov r15d, 7
mov eax, 8
jmp 0x140030ae9
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x60]
lea edx, [r8 + 1]
mov r8d, 0x2d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x60], rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_construct_unsigned_long_long__char_
add rbx, qword [rsp + 0x60]
jmp 0x140030509
mov r15d, 2
mov eax, 3
jmp 0x140030ae9
mov r15d, 3
mov eax, 4
jmp 0x140030ae9
mov r15d, 5
jmp 0x1400302a5