Function at 0x140019100
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14014a040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov esi, r8d
mov r13, rdx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rdx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x50], r14
mov ecx, 0x30
call fcn.1400ebf10
mov rbx, rax
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [0x140133550]
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov word [rax + 0x28], r14w
mov edi, 0x14
movabs r15, 0x2492492492492493
lea r12, [0x140000000]
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r15
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
movsx eax, byte [rcx + r12 + 0x12f498]
mov word [rbx], ax
lea rbx, [rbx + 2]
sub rdi, 1
jne 0x1400191a0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140019248
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019243
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019243
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ec18c
movdqa xmm0, xmmword [0x140133520]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
test r12, r12
je 0x140019659
mov dword [rsp + 0x20], 0x1388
mov edx, 0x1388
mov r9d, edx
mov r8d, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov rdx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14001928f
mov rdx, qword [r13]
xor r9d, r9d
movzx r8d, si
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14001967a
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, str._players.json
lea rdx, [0x14012f538]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x1400196a4
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, r15
test eax, eax
je 0x1400196d7
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140019710
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140000000]
lea rax, [rax + 0x12f308]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x50], rbx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x20], r14
mov dword [rbp + 0x28], 4
mov dword [rbp - 0x78], r14d
nop word [rax + rax]
lea rdx, [rbp - 0x78]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400194da
mov ecx, dword [rbp - 0x78]
test ecx, ecx
je 0x1400194da
xorps xmm0, xmm0
mov eax, 0x2000
cmp ecx, eax
cmovb eax, ecx
mov esi, eax
movdqu xmmword [rbp - 0x70], xmm0
mov rdi, r14
mov qword [rbp - 0x60], r14
test eax, eax
je 0x14001945e
cmp rsi, 0x1000
jb 0x140019431
lea rcx, [rax + 0x27]
cmp rcx, rsi
jbe 0x140019653
call fcn.1400ebf10
test rax, rax
je 0x14001954a
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001943c
mov rcx, rsi
call fcn.1400ebf10
mov rbx, rax
mov qword [rbp - 0x70], rbx
lea rdi, [rbx + rsi]
mov r14, rdi
mov qword [rbp - 0x60], rdi
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x68], rdi
jmp 0x140019462
mov rbx, qword [rbp - 0x70]
mov dword [rbp - 0x58], 0
sub r14d, ebx
lea r9, [rbp - 0x58]
mov r8d, r14d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140019495
mov r8d, dword [rbp - 0x58]
mov rdx, rbx
lea rcx, [rbp - 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
nop
test rbx, rbx
je 0x1400194cd
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x1400194c2
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001954a
mov rdx, rdi
mov rcx, rbx
call fcn.1400ec18c
xor r14d, r14d
cmp dword [rbp - 0x78], r14d
ja 0x1400193c0
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x70]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x40], 0x16
movups xmmword [rbp - 0x70], xmm0
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140019551
mov rax, qword [rbp - 8]
mov r8, qword [rax]
test r8, r8
je 0x140019551
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x20]
cmovb r8, qword [rbp + 0x20]
sub r8, rdx
jmp 0x140019580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test cl, 4
jne 0x140019578
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x140019578
mov rax, qword [rbp - 0x30]
mov rdx, qword [rax]
mov rax, qword [rbp + 8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140019580
mov r8, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14001958e
mov rcx, rsi
call fcn.14000a630
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.14001a0e0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x14001960e
lea rdx, [rdx*2 + 2]
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x140019609
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001964c
mov rcx, r8
call fcn.1400ec18c
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], 7
mov word [r13], r14w
mov rax, rsi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ebef0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001600
nop
lea rdx, str.Failed_to_open_WinHTTP_session
lea rcx, [rbp - 0x70]
call fcn.140001810
lea rdx, [0x140146cc8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.Failed_to_connect_to_server
lea rcx, [rbp - 0x70]
call fcn.140001810
lea rdx, [0x140146cc8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.Failed_to_open_request
lea rcx, [rbp - 0x70]
call fcn.140001810
lea rdx, [0x140146cc8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.Failed_to_send_request
lea rcx, [rbp - 0x70]
call fcn.140001810
lea rdx, [0x140146cc8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.Failed_to_receive_response
lea rcx, [rbp - 0x70]
call fcn.140001810
lea rdx, [0x140146cc8]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3