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

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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rcx
mov qword [rbp - 0x30], rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x40], esi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 8], rsi
mov qword [rbp], send
mov byte [rbp - 0x18], sil
xor r8d, r8d
lea rdx, [0x14005ee21]
lea rcx, [rbp - 0x18]
call fcn.14003cd20
nop
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], sil
lea r8d, [rsi + 0x22]
lea rdx, str.http:__top6666.top_top_version.txt
lea rcx, [rbp + 0x10]
call fcn.14003cd20
nop
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
test rax, rax
je 0x140043e8b
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
setae sil
mov rdi, qword [rbp + 0x10]
cmovae rcx, rdi
mov qword [rsp + 0x20], 1
lea r9, [0x1402783b4]
mov r8d, 7
mov rbx, qword [rbp + 0x20]
mov rdx, rbx
call fcn.140050680
xor edx, edx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], send
mov byte [rbp - 0x78], dl
cmp rbx, 7
jb 0x140044345
lea r8, [rax - 7]
lea rax, [rbx - 7]
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x10]
test sil, sil
cmovne rdx, rdi
add rdx, 7
lea rcx, [rbp - 0x78]
call fcn.14003cd20
mov edi, 2
mov dword [rsp + 0x40], edi
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140043830
cmp qword [rax + 0x18], 8
jb 0x140043b44
mov rax, qword [rax]
mov r8d, 0x50
xor r9d, r9d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140043b9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
xor esi, esi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], si
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140043bef
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043bea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043bea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], send
mov byte [rbp - 0x78], 0
test r12, r12
je 0x140043e82
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
setae sil
mov rdi, qword [rbp + 0x10]
cmovae rcx, rdi
mov qword [rsp + 0x20], 1
lea r9, [0x1402783b4]
mov r8d, 7
mov rbx, qword [rbp + 0x20]
mov rdx, rbx
call fcn.140050680
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], dl
cmp rbx, rax
jb 0x14004434b
sub rbx, rax
mov r8, 0xffffffffffffffff
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp + 0x10]
test sil, sil
cmovne rdx, rdi
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14003cd20
mov edi, 6
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140043830
cmp qword [rax + 0x18], 8
jb 0x140043cac
mov rax, qword [rax]
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rax
lea rdx, [0x140278578]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140043d19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043d14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043d14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140043d6b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043d66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043d66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], 0
test r15, r15
je 0x140043e79
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140043e70
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140043e70
mov dword [rbp - 0x20], esi
mov dword [rbp + 8], esi
nop word [rax + rax]
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x20]
inc ecx
call fcn.14005a960
mov rsi, rax
lea r9, [rbp + 8]
mov r8d, dword [rbp - 0x20]
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140043e58
mov edi, dword [rbp + 8]
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140043e44
lea rax, [rcx + rdi]
mov qword [rbp - 8], rax
lea rbx, [rbp - 0x18]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x18]
add rbx, rcx
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140043e58
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.1400508c0
mov rcx, rsi
call fcn.14005a61c
cmp dword [rbp - 0x20], 0
ja 0x140043dd0
mov edi, dword [rsp + 0x40]
xor esi, esi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], send
mov byte [r14], 0
lea rbx, [r14 + 0x20]
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], send
mov byte [rbx], 0
or edi, 1
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
setae r13b
mov r12, qword [rbp - 0x18]
mov qword [rsp + 0x20], 8
lea r9, str.version
mov rdi, qword [rbp - 8]
mov rdx, rdi
jb 0x140043ef5
mov r15, r12
xor r8d, r8d
mov rcx, r12
call fcn.140050680
jmp 0x140043f01
xor r8d, r8d
call fcn.140050680
lea r15, [rbp - 0x18]
mov rsi, rax
mov qword [rsp + 0x20], 4
lea r9, str.url
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.140050680
mov r15, rax
cmp rsi, 0xffffffffffffffff
je 0x140044239
cmp rax, 0xffffffffffffffff
je 0x140044239
add rsi, 8
add r15, 4
lea rcx, [rbp - 0x18]
test r13b, r13b
cmovne rcx, r12
mov qword [rsp + 0x20], 1
lea r9, [0x14005ef50]
mov r8, rsi
mov rdx, rdi
call fcn.140050680
mov r8, rax
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], dl
cmp rdi, rsi
jb 0x140044351
sub r8, rsi
sub rdi, rsi
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x18]
test r13b, r13b
cmovne rdx, r12
add rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14003cd20
mov esi, dword [rsp + 0x40]
or esi, 8
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140043910
mov rdi, rax
cmp r14, rax
je 0x14004403c
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140044009
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140044004
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140044072
mov rcx, r8
call fcn.14005a61c
xor r12d, r12d
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], send
mov byte [r14], r12b
movups xmm0, xmmword [rdi]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], send
mov byte [rdi], r12b
jmp 0x14004403f
xor r12d, r12d
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14004407e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044079
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044079
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400440d0
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400440cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400440cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], 0
mov rax, qword [rbp - 8]
cmp rax, r15
jb 0x14004433f
sub rax, r15
cmp rax, 0xffffffffffffffff
mov r8, 0xffffffffffffffff
cmovb r8, rax
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
add rdx, r15
lea rcx, [rsp + 0x48]
call fcn.14003cd20
or esi, 0x10
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140043910
mov rdi, rax
cmp rbx, rax
je 0x1400441a2
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140044176
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140044171
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400441d5
mov rcx, r8
call fcn.14005a61c
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], send
mov byte [rbx], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], send
mov byte [rdi], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400441e1
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400441dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400441dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140044283
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044232
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044232
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
jmp 0x140044283
lea rdx, str.Invalid_server_response_format
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003f950
lea rdx, [0x14003fb20]
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]
xor r8d, r8d
lea rdx, [0x14005ee21]
mov rcx, r14
call fcn.14003cd20
xor r8d, r8d
lea rdx, [0x14005ee21]
mov rcx, rbx
call fcn.14003cd20
xor r12d, r12d
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400442c1
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400442bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400442bc
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 + 0x28], send
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14004430f
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004430a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004430a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov rax, r14
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14005a2a0
lea r11, [rsp + 0x140]
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.14003ceb0
int3
call fcn.14003ceb0
int3
call fcn.14003ceb0
int3
call fcn.14003ceb0
int3