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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb58
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xac0], xmm6
mov qword [rbp + 0xab8], 0xfffffffffffffffe
stmxcsr dword [rbp + 0x1c0]
or dword [rbp + 0x1c0], 0x8040
ldmxcsr dword [rbp + 0x1c0]
xorps xmm6, xmm6
movaps xmmword [rbp + 0xa80], xmm6
mov qword [rbp + 0xa90], 0
mov qword [rbp + 0xa30], 0
mov ecx, 0x40
call fcn.140006cf8
mov qword [rbp + 0xa28], rax
mov qword [rbp + 0xa38], 0x1a
mov qword [rbp + 0xa40], 0x1f
movups xmm0, xmmword [0x14000afd8]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x14000afc8]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x14000afb8]
movups xmmword [rax], xmm0
mov dword [rax + 0x30], 0x740078
mov word [rax + 0x34], 0
movaps xmmword [rbp + 0x9c0], xmm6
movaps xmmword [rbp + 0xa10], xmm6
movaps xmmword [rbp + 0xa00], xmm6
movaps xmmword [rbp + 0x9f0], xmm6
movaps xmmword [rbp + 0x9e0], xmm6
movaps xmmword [rbp + 0x9d0], xmm6
mov qword [rbp + 0xa20], 0
mov dword [rbp + 0x9c0], 0x68
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x9d8], rcx
mov dword [rbp + 0x9e0], 0x100
lea rcx, [rbp + 0x1c0]
mov qword [rbp + 0xa08], rcx
mov dword [rbp + 0xa10], 0x400
lea r9, [rbp + 0x9c0]
mov rcx, rax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x14000170b
mov dword [rsp + 0x20], 0
lea rcx, str.A_WinHTTP_Example_Program_1.0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
je 0x14000170b
mov r14, rax
movzx r8d, word [rbp + 0x9e4]
lea rdx, [rbp - 0x40]
mov rcx, rax
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x1400016e1
mov r13, rax
xor eax, eax
cmp dword [rbp + 0x9d4], 2
sete al
shl eax, 0x17
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], eax
lea rdx, [0x14000afee]
lea r8, [rbp + 0x1c0]
mov rcx, r13
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
je 0x1400016fa
mov r15, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400016ec
mov rcx, r15
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400016ec
mov dword [rbp + 0xaa4], 0
mov qword [rbp + 0xa50], r14
mov qword [rbp + 0xa58], r13
mov qword [rbp + 0xaa8], r15
jmp 0x140001475
mov rcx, r12
call fcn.140006d3c
cmp dword [rbp + 0xab4], 0
je 0x140001800
mov dword [rbp + 0xab4], 0
mov rcx, r15
lea rdx, [rbp + 0xab4]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001800
mov esi, dword [rbp + 0xab4]
movaps xmmword [rbp + 0xa60], xmm6
mov qword [rbp + 0xa70], 0
test rsi, rsi
je 0x1400014e0
cmp esi, 0x1000
jb 0x1400014e7
lea rcx, [rsi + 0x27]
call fcn.140006cf8
mov rdi, rax
add rdi, 0x27
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400014f2
xor edi, edi
xor r8d, r8d
jmp 0x14000151f
mov rcx, rsi
call fcn.140006cf8
mov rdi, rax
mov qword [rbp + 0xa60], rdi
lea rbx, [rdi + rsi]
mov qword [rbp + 0xa70], rbx
mov rcx, rdi
xor edx, edx
mov r8, rsi
call fcn.140001ef0
mov qword [rbp + 0xa68], rbx
mov r8d, dword [rbp + 0xab4]
mov rcx, r15
mov rdx, rdi
lea r9, [rbp + 0xaa4]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400017f4
mov r12, qword [rbp + 0xa60]
mov edi, dword [rbp + 0xaa4]
test rdi, rdi
je 0x14000169f
mov rsi, qword [rbp + 0xa88]
mov r15, qword [rbp + 0xa90]
mov rax, r15
sub rax, rsi
cmp rax, rdi
jae 0x1400015e4
mov r14, qword [rbp + 0xa80]
sub rsi, r14
mov rax, rsi
movabs rcx, 0x7fffffffffffffff
xor rax, rcx
cmp rax, rdi
jb 0x140001ad6
lea rdx, [rsi + rdi]
sub r15, r14
mov r13, r15
shr r13, 1
mov rax, r13
xor rax, rcx
add r13, r15
cmp r13, rdx
mov qword [rbp + 0xa48], rdx
cmovbe r13, rdx
cmp r15, rax
cmova r13, rcx
cmp r13, 0x1000
jb 0x140001602
cmp r13, 0xffffffffffffffd9
jae 0x140001adb
lea rcx, [r13 + 0x27]
call fcn.140006cf8
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001616
lea rax, [rsi + rdi]
mov qword [rbp + 0xa88], rax
mov rcx, rsi
mov rdx, r12
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x140001698
test r13, r13
je 0x140001614
mov rcx, r13
call fcn.140006cf8
mov rbx, rax
jmp 0x140001616
xor ebx, ebx
lea rcx, [rbx + rsi]
mov rdx, r12
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov rcx, rbx
mov rdx, r14
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
test r14, r14
je 0x140001668
cmp r15, 0x1000
jb 0x14000165d
mov rax, qword [r14 - 8]
add r14, 0xfffffffffffffff8
sub r14, rax
cmp r14, 0x20
jae 0x140001ad0
add r15, 0x27
mov r14, rax
mov rcx, r14
mov rdx, r15
call fcn.140006d3c
mov qword [rbp + 0xa80], rbx
mov rax, qword [rbp + 0xa48]
add rax, rbx
mov qword [rbp + 0xa88], rax
add r13, rbx
mov qword [rbp + 0xa90], r13
mov r14, qword [rbp + 0xa50]
mov r13, qword [rbp + 0xa58]
mov r15, qword [rbp + 0xaa8]
test r12, r12
je 0x140001468
mov rdx, qword [rbp + 0xa70]
sub rdx, r12
cmp rdx, 0x1000
jb 0x140001460
mov rax, qword [r12 - 8]
add r12, 0xfffffffffffffff8
sub r12, rax
cmp r12, 0x20
jae 0x140001ad0
add rdx, 0x27
mov r12, rax
jmp 0x140001460
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14000170b
mov rsi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call rsi
jmp 0x140001701
mov rsi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call rsi
mov rcx, r14
call rsi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0xf
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___int____ptr64]
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_char____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0xa
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___int____ptr64]
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_char____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
mov edx, 0x40
mov esi, 1
mov rcx, qword [rbp + 0xa28]
call fcn.140006d3c
mov rcx, qword [rbp + 0xa80]
test rcx, rcx
je 0x1400017d7
mov rdx, qword [rbp + 0xa90]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400017d2
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140001ad0
add rdx, 0x27
mov rcx, rax
call fcn.140006d3c
mov eax, esi
movaps xmm6, xmmword [rbp + 0xac0]
add rsp, 0xb58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xa60]
call fcn.140001080
mov rsi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call rsi
mov rcx, r13
call rsi
mov rcx, r14
call rsi
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov rdx, qword [rbx + rcx + 0x28]
mov rax, qword [rbx + rcx + 0x48]
lea rdi, [rdx - 8]
xor esi, esi
cmp rdx, 9
cmovge rsi, rdi
mov qword [rbp + 0x1c0], rbx
test rax, rax
je 0x140001858
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x1400018c1
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbx + rax + 0x50]
test rcx, rcx
je 0x1400018d7
cmp rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
je 0x1400018d7
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__::flush_void____ptr64]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
mov byte [rbp + 0x1c8], al
mov dword [rbp + 0xaa8], 4
test al, al
je 0x1400019b0
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
jmp 0x1400018de
mov byte [rbp + 0x1c8], 0
mov dword [rbp + 0xaa8], 4
jmp 0x1400019b0
mov byte [rbp + 0x1c8], 1
mov ecx, 0x1c0
and ecx, dword [rbx + rax + 0x18]
cmp ecx, 0x40
je 0x14000192d
test rsi, rsi
jle 0x14000192d
mov rsi, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbx + rax + 0x48]
movzx edx, byte [rbx + rax + 0x58]
call rsi
cmp eax, 0xffffffff
je 0x14000198e
lea rax, [rdi - 1]
cmp rdi, 1
mov rdi, rax
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jg 0x1400018f8
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
xor esi, esi
mov rcx, qword [rbx + rax + 0x48]
mov rax, qword [rcx]
lea rdx, str.Result:
mov r8d, 8
call qword [rax + 0x48]
cmp rax, 8
jne 0x14000198e
test rsi, rsi
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jle 0x14000198a
mov rdi, qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sputc_char____ptr64]
mov rax, qword [rdx]
movsxd rax, dword [rax + 4]
mov rcx, qword [rdx + rax + 0x48]
movzx edx, byte [rdx + rax + 0x58]
call rdi
cmp eax, 0xffffffff
je 0x14000198e
lea rax, [rsi - 1]
cmp rsi, 1
mov rsi, rax
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jg 0x14000195e
xor eax, eax
jmp 0x14000199a
mov eax, 4
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [rbp + 0xaa8], eax
mov rax, qword [rdx]
movsxd rax, dword [rax + 4]
mov qword [rdx + rax + 0x28], 0
mov r8, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rax, qword [r8]
movsxd rax, dword [rax + 4]
lea rcx, [r8 + rax]
mov edx, dword [rbp + 0xaa8]
or edx, dword [r8 + rax + 0x10]
xor r8d, r8d
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
call sub.MSVCP140.dll_bool___cdecl_std::uncaught_exception_void_
mov rsi, qword [rbp + 0x1c0]
test al, al
jne 0x1400019ef
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::_Osfx_void____ptr64]
mov rax, qword [rsi]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsi + rax + 0x48]
test rcx, rcx
je 0x140001a06
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0xfffffffb
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___int____ptr64]
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_char____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x19
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___int____ptr64]
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
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__::put_char____ptr64]
mov rcx, rsi
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__::flush_void____ptr64]
mov rax, qword [rbp + 0xa40]
xor esi, esi
cmp rax, 8
jb 0x140001797
mov rcx, qword [rbp + 0xa28]
lea rdx, [rax*2 + 2]
xor esi, esi
cmp rdx, 0x1000
jb 0x140001792
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140001ad0
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
jmp 0x140001792
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.140001000
call fcn.140001020
int3