Function at 0x140041510
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140041565
xor al, al
jmp 0x140041bb5
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov rax, qword [rsi]
mov rbx, qword [rax + 0x50]
lea rdx, [rsi + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14004f4a0
mov r8, rax
lea rdx, [rbp - 0x40]
mov rcx, rsi
call rbx
nop
mov rax, qword [rsi]
mov rbx, qword [rax + 0x58]
lea rdx, [rsi + 0x28]
lea rcx, [rsp + 0x20]
call fcn.14004f4a0
mov r8, rax
lea rdx, [rbp - 0x30]
mov rcx, rsi
call rbx
nop
xor r8d, r8d
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], r8b
lea r15, [rsi + 8]
mov rdx, qword [0x140284280]
mov qword [rsp + 0x20], rdx
mov rcx, qword [r15 + 0x10]
mov qword [rsp + 0x30], rcx
movabs r9, 0x7fffffffffffffff
mov rax, r9
sub rax, rdx
cmp rax, rcx
jb 0x140041beb
lea r13, [0x140284270]
cmp qword [0x140284288], 0x10
cmovae r13, qword [0x140284270]
cmp qword [r15 + 0x18], 0x10
jb 0x14004161a
mov r15, qword [r15]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r8
lea r12, [rcx + rdx]
mov edi, send
lea r14, [rsp + 0x40]
lea rbx, [rdi - 0x10]
cmp r12, rdi
jbe 0x1400416be
mov rdi, r12
or rdi, 0xf
cmp rdi, r9
jbe 0x140041651
mov rdi, r9
jmp 0x14004165d
mov eax, socket
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x1400416a2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140041be5
mov rcx, rax
call fcn.14005a2c0
test rax, rax
je 0x1400418a4
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rdx, qword [rsp + 0x20]
jmp 0x1400416b9
test rcx, rcx
je 0x1400416b6
call fcn.14005a2c0
mov r14, rax
mov rdx, qword [rsp + 0x20]
jmp 0x1400416b9
mov r14, r8
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rdi
mov r8, rdx
mov rdx, r13
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x20]
add rcx, r14
mov r8, qword [rsp + 0x30]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + r12], 0
mov r8d, 1
lea rdx, [0x14027849c]
lea rcx, [rsp + 0x40]
call fcn.14004f580
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], send
mov byte [rax], r12b
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.14004f580
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], send
mov byte [rax], r12b
lea rdi, [rsi + 0xa0]
lea rax, [rbp - 0x80]
cmp rdi, rax
je 0x1400417de
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400417cd
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400417be
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140041810
mov rcx, r8
call fcn.14005a61c
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
mov qword [rdi + 0x18], send
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
jmp 0x14004181d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14004181d
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041817
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041817
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14004185d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041858
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041858
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400418b0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400418ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400418ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
xor r15b, r15b
lea rdx, [rsi + 0x80]
call fcn.140057650
test al, al
je 0x140041971
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rbx
lea r9, [rsi + 0x80]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.140058210
test al, al
jne 0x1400418f5
mov rcx, qword [rsp + 0x20]
jmp 0x140041930
lea r8, [rsi + 0x118]
lea rdx, [rsp + 0x20]
call fcn.140058580
test al, al
jne 0x140041911
mov rcx, qword [rsp + 0x20]
jmp 0x140041930
lea r9, [rbp - 0x60]
lea r8, [rsi + 0x118]
lea rdx, [rsp + 0x20]
call fcn.140058a20
nop
mov rcx, qword [rsp + 0x20]
test al, al
jne 0x14004193e
cmp rcx, 0xffffffffffffffff
je 0x140041971
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140041971
cmp rcx, 0xffffffffffffffff
je 0x14004194a
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rsi + 0x58]
lea rax, [rbp - 0x60]
cmp rcx, rax
je 0x14004196e
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
call fcn.14003cd20
mov r15b, 1
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdi, [rsi + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14004f690
mov r8, rax
lea rdx, [rbp - 0x80]
call fcn.140059da0
mov r14, rax
cmp rdi, rax
je 0x140041a01
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400419d2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400419cd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140041a33
mov rcx, r8
call fcn.14005a61c
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], send
mov byte [rdi], 0
movups xmm0, xmmword [r14]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], send
mov byte [r14], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140041a3f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041a3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041a3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov rax, qword [rsi]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [rax + 0x18]
nop
cmp qword [rax + 0x18], 0x10
jb 0x140041a57
mov rax, qword [rax]
test rax, rax
jne 0x140041a61
mov rax, r12
jmp 0x140041a7d
lea rbx, [rbx + 1]
cmp byte [rax + rbx], 0
jne 0x140041a61
lea rdx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call sym.TOP_2.4.6.exe_cJSON_ParseWithLengthOpts
mov qword [rsi + 0x140], rax
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140041ac3
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041abd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041abd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140041b01
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041afc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041afc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140041b4f
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041b4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], send
mov byte [rbp - 0x30], 0
mov rcx, qword [rbp - 0x40]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x19], 0
jne 0x140041ba7
nop dword [rax]
mov r8, qword [rdi + 0x10]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140050d80
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x20]
call fcn.140044360
mov edx, 0x60
mov rcx, rbx
call fcn.14005a61c
cmp byte [rdi + 0x19], 0
je 0x140041b70
mov rcx, qword [rbp - 0x40]
mov edx, 0x60
call fcn.14005a61c
movzx eax, r15b
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14005a2a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400179b0
nop
call fcn.1400385b0
int3