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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
mov rax, qword [0x1400490c0]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov r14, rdx
mov qword [r11 - 0x5d8], rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
mov qword [r11 - 0x568], rax
mov dword [rsp + 0x140], WSAGetLastError
lea rax, [r11 - 0x438]
mov qword [r11 - 0x5b0], rax
mov dword [rsp + 0x160], pe_nt_image_headers64
lea rax, [r11 - 0x238]
mov qword [r11 - 0x580], rax
mov dword [rsp + 0x190], pe_nt_image_headers64
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140002310
lea r9, [rsp + 0x140]
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x140002706
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002728
xor r9d, r9d
movzx r8d, word [rsp + 0x164]
lea rdx, [rsp + 0x2d0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000274a
mov eax, ebx
mov ecx, 0x800000
cmp dword [rsp + 0x154], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x4d0]
lea rdx, [0x1400419f8]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140002772
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000279a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400027c2
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x1c0]
call fcn.1400344b0
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.140006bd0
nop
mov dword [rsp + 0x1b0], ebx
nop dword [rax]
mov dword [rsp + 0x128], ebx
lea rdx, [rsp + 0x128]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140002499
lea rdx, str.Error
lea rcx, [0x14004a7b0]
call fcn.14000a3b0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140007250
lea rdx, str._in_WinHttpQueryDataAvailable.
mov rcx, rax
call fcn.14000a3b0
mov rcx, rax
call fcn.14000a660
mov ecx, dword [rsp + 0x128]
inc ecx
call fcn.140010950
mov rdi, rax
mov r8d, dword [rsp + 0x128]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1400344b0
lea r9, [rsp + 0x1b0]
mov r8d, dword [rsp + 0x128]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000251e
lea rdx, str.Error
lea rcx, [0x14004a7b0]
call fcn.14000a3b0
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
call fcn.140007250
lea rdx, str._in_WinHttpReadData.
mov rcx, rax
call fcn.14000a3b0
mov rcx, rax
call fcn.14000a660
jmp 0x140002536
mov r8d, dword [rsp + 0x1b0]
mov rdx, rdi
lea rcx, [rsp + 0x1c0]
call fcn.140006da0
mov rcx, rdi
call fcn.140010670
cmp dword [rsp + 0x128], 0
ja 0x140002440
lea rcx, [rsp + 0x1c8]
call fcn.140008ea0
test rax, rax
jne 0x14000259e
mov rax, qword [rsp + 0x1c0]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x208], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x1d0]
and eax, 0x17
mov dword [rsp + rcx + 0x1d0], eax
and eax, dword [rsp + rcx + 0x1d4]
jne 0x1400027eb
mov rax, qword [rsp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x1bc], edx
lea rcx, [rsp + 0x1c8]
call fcn.1400068b0
mov rax, qword [rsp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x1bc], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x268], rax
lea rcx, [rsp + 0x268]
call fcn.14000f7b4
nop
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002667
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x14000267e
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x14000268d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1400026c3
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400026be
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002700
mov rcx, r8
call fcn.140010670
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], send
mov byte [r14], 0
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140010650
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14001c204
nop
lea rdx, str.Error_in_WinHttpCrackUrl
lea rcx, [rsp + 0x60]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0x60]
call fcn.1400123fc
lea rdx, str.Error_in_WinHttpOpen
lea rcx, [rsp + 0x78]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0x78]
call fcn.1400123fc
lea rdx, str.Error_in_WinHttpConnect
lea rcx, [rsp + 0x90]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0x90]
call fcn.1400123fc
lea rdx, str.Error_in_WinHttpOpenRequest
lea rcx, [rsp + 0xa8]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0xa8]
call fcn.1400123fc
lea rdx, str.Error_in_WinHttpSendRequest
lea rcx, [rsp + 0xc0]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0xc0]
call fcn.1400123fc
lea rdx, str.Error_in_WinHttpReceiveResponse
lea rcx, [rsp + 0xd8]
call fcn.140001580
lea rdx, [0x140047740]
lea rcx, [rsp + 0xd8]
call fcn.1400123fc
nop
test al, 4
je 0x1400027f8
lea rbx, str.ios_base::badbit_set
jmp 0x14000280c
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0xf0]
call fcn.1400016a0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x100]
call fcn.140001fc0
lea rdx, [0x1400477f8]
lea rcx, [rsp + 0x100]
call fcn.1400123fc
int3