Function at 0x140043980
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.14003ccb0
nop
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], sil
lea r8d, [rsi + 0x24]
lea rdx, str.http:__top6666.top_top19_version.txt
lea rcx, [rbp + 0x10]
call fcn.14003ccb0
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 0x140043e1b
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, [0x1402783a4]
mov r8d, 7
mov rbx, qword [rbp + 0x20]
mov rdx, rbx
call fcn.1400502a0
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 0x1400442d5
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.14003ccb0
mov edi, 2
mov dword [rsp + 0x40], edi
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400437c0
cmp qword [rax + 0x18], 8
jb 0x140043ad4
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 0x140043b2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043b2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043b2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
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 0x140043b7f
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043b7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043b7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], send
mov byte [rbp - 0x78], 0
test r12, r12
je 0x140043e12
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, [0x1402783a4]
mov r8d, 7
mov rbx, qword [rbp + 0x20]
mov rdx, rbx
call fcn.1400502a0
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 0x1400442db
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.14003ccb0
mov edi, 6
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400437c0
cmp qword [rax + 0x18], 8
jb 0x140043c3c
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, [0x140278568]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140043ca9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043ca4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043ca4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140043cfb
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043cf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043cf6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], 0
test r15, r15
je 0x140043e09
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 0x140043e00
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140043e00
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.14005a560
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 0x140043de8
mov edi, dword [rbp + 8]
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140043dd4
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 0x140043de8
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.1400504e0
mov rcx, rsi
call fcn.14005a21c
cmp dword [rbp - 0x20], 0
ja 0x140043d60
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 0x140043e85
mov r15, r12
xor r8d, r8d
mov rcx, r12
call fcn.1400502a0
jmp 0x140043e91
xor r8d, r8d
call fcn.1400502a0
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.1400502a0
mov r15, rax
cmp rsi, 0xffffffffffffffff
je 0x1400441c9
cmp rax, 0xffffffffffffffff
je 0x1400441c9
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.1400502a0
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 0x1400442e1
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.14003ccb0
mov esi, dword [rsp + 0x40]
or esi, 8
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400438a0
mov rdi, rax
cmp r14, rax
je 0x140043fcc
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140043f99
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140043f94
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140044002
mov rcx, r8
call fcn.14005a21c
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 0x140043fcf
xor r12d, r12d
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14004400e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044009
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044009
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140044060
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004405b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004405b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
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 0x1400442cf
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.14003ccb0
or esi, 0x10
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400438a0
mov rdi, rax
cmp rbx, rax
je 0x140044132
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140044106
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140044101
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140044165
mov rcx, r8
call fcn.14005a21c
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 0x140044171
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004416c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004416c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140044213
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400441c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400441c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
jmp 0x140044213
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.14003f8e0
lea rdx, [0x14003fab0]
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.14003ccb0
xor r8d, r8d
lea rdx, [0x14005ee21]
mov rcx, rbx
call fcn.14003ccb0
xor r12d, r12d
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140044251
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004424c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004424c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14004429f
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004429a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004429a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a21c
mov rax, r14
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140059ea0
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.14003ce40
int3
call fcn.14003ce40
int3
call fcn.14003ce40
int3
call fcn.14003ce40
int3