Function at 0x140012530
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rbp + 0x190], rax
call fcn.140010440
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], shutdown
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x38], 6
mov eax, dword [str.C00001]
mov dword [rsp + 0x28], eax
movzx eax, word [0x1400223f8]
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], sil
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140006740
mov rdx, rax
lea rcx, [0x14002f138]
call fcn.140002640
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14001260b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012606
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012606
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], shutdown
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001265e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012659
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012659
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], shutdown
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x38], 6
mov eax, dword [str.C00002]
mov dword [rsp + 0x28], eax
movzx eax, word [0x140022400]
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x58]
call fcn.140006740
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400126e4
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], shutdown
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x38], 6
mov eax, dword [str.C00003]
mov dword [rsp + 0x28], eax
movzx eax, word [0x140022408]
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x78]
call fcn.140006740
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001276a
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012765
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012765
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x40], shutdown
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x38], 6
mov eax, dword [str.C00004]
mov dword [rsp + 0x28], eax
movzx eax, word [0x140022410]
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.140006740
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400127f1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400127ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400127ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], shutdown
mov byte [rsp + 0x28], 0
lea rdx, str.config:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011f0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
mov rcx, rax
call fcn.140001ce0
lea rdx, [0x140021ae4]
mov rcx, rax
call fcn.1400011f0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
mov rcx, rax
call fcn.140001ce0
lea rdx, [0x140022414]
mov rcx, rax
call fcn.1400011f0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140001ce0
lea rdx, [0x1400013c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rbx, qword [rsp + 0x68]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x20]
je 0x140012b0f
cmp dword [rdi], 0x22
je 0x140012b1c
mov dword [0x14002f110], eax
lea rdx, [0x14002f138]
lea rcx, [rsp + 0x48]
call fcn.140006ff0
mov rdx, rax
lea rcx, [0x14002f118]
call fcn.140002640
mov r8, qword [rsp + 0x60]
cmp r8, 0x10
jb 0x14001291c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003880
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x140031350], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rbx, qword [rbp - 0x78]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x20]
je 0x140012b29
cmp dword [rdi], 0x22
je 0x140012b02
mov dword [0x140031358], eax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], shutdown
mov byte [rsp + 0x48], 0
mov r8d, 7
lea rdx, str.H000001
lea rcx, [rsp + 0x48]
call fcn.140003200
nop
lea rdx, [0x14002f138]
lea rcx, [rbp - 0x38]
call fcn.140007eb0
nop
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
lea rcx, [0x140031350]
call fcn.140004300
mov r8, qword [rsp + 0x40]
cmp r8, 0x10
jb 0x1400129f7
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003880
nop
mov r8, qword [rbp - 0x20]
cmp r8, 0x10
jb 0x140012a11
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.140003880
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], shutdown
mov byte [rbp - 0x38], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140012a61
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012a5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012a5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov byte [0x140031398], 1
mov r8, qword [rbp - 0x80]
cmp r8, 0x10
jb 0x140012a84
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003880
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], shutdown
mov byte [rsp + 0x68], 0
mov r8, qword [rbp - 0x60]
cmp r8, 0x10
jb 0x140012ab0
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.140003880
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], shutdown
mov byte [rbp - 0x78], 0
mov r8, qword [rbp - 0x40]
cmp r8, 0x10
jb 0x140012ada
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140003880
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001d230
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rcx, str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
lea rcx, str.invalid_stoi_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
lea rcx, str.invalid_stoi_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3