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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
pxor xmm0, xmm0
mov rbp, rcx
mov ecx, 0xb
mov qword [rsp + 0x128], r9
mov r13, rdx
mov dword [rsp + 0x70], 0
mov rdi, r8
mov dword [rsp + 0x74], 0
mov qword [rsp + 0xb0], 0
movups xmmword [rsp + 0xa0], xmm0
call sym.operator_new_unsigned_long_long_
mov rcx, qword [0x14002f0a8]
mov byte [rax + 0xa], 0x4e
lea rdx, [rax + 0xb]
lea r15, [rsp + 0xa0]
mov qword [rsp + 0xa0], rax
mov qword [rax], rcx
mov ecx, 0x5c44
mov word [rax + 8], cx
lea rax, [rsp + 0x80]
mov qword [rsp + 0xb0], rdx
mov rcx, rax
mov qword [rsp + 0xa8], rdx
mov rdx, r15
mov qword [rsp + 0x50], rax
call sym.HySlRijqkWMfisad_abi:cxx11__std::vector_unsigned_char__std::allocator_unsigned_char____const_
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140002706
mov rdx, qword [rsp + 0xb0]
sub rdx, rcx
call sym.operator_delete_void__unsigned_long_long_
mov rbx, qword [rsp + 0x88]
lea r12, [rsp + 0xb0]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], r12
mov rsi, qword [rsp + 0x80]
mov rcx, r12
mov qword [rsp + 0x78], rbx
mov rax, rbx
cmp rbx, 7
ja 0x1400028b8
xor edx, edx
test rbx, rbx
je 0x140002764
nop
movsx r8w, byte [rsi + rdx]
mov word [rcx + rdx*2], r8w
add rdx, 1
cmp rbx, rdx
jne 0x140002750
xor edx, edx
mov qword [rsp + 0xa8], rax
xor r9d, r9d
xor r8d, r8d
mov word [rcx + rax*2], dx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x1400028b0
movzx r8d, word [rsp + 0x130]
xor r9d, r9d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x58], rax
mov rcx, rax
test rax, rax
je 0x1400028a0
mov dword [rsp + 0x30], 0
xor r9d, r9d
mov r8, r13
lea rdx, [0x14002f0a0]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
test rax, rax
je 0x1400029fa
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], 0
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400028e8
xor r14d, r14d
mov rbx, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
mov rcx, rsi
call rbx
mov rcx, qword [rsp + 0xa0]
cmp rcx, r12
je 0x140002862
mov rax, qword [rsp + 0xb0]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x90]
cmp rcx, rax
je 0x140002888
mov rax, qword [rsp + 0x90]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov eax, r14d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14d, r14d
jmp 0x14000283e
xor r14d, r14d
jmp 0x140002843
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, r15
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_create_unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0xa0], rax
mov rcx, rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb0], rax
jmp 0x140002747
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002828
mov rax, qword [rsp + 0x128]
mov qword [rdi], 0
xor ebp, ebp
xor r14d, r14d
mov dword [rax], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x68], rax
jmp 0x140002985
mov rcx, qword [rdi]
mov edx, ebp
add edx, dword [rsp + 0x74]
call sym.realloc
mov qword [rdi], rax
test rax, rax
je 0x1400029ed
mov edx, ebp
mov r8d, dword [rsp + 0x74]
mov r14d, 1
lea rcx, [rax + rdx]
mov rdx, rbx
call sym.memcpy
mov rax, qword [rsp + 0x128]
add ebp, dword [rsp + 0x74]
mov rcx, rbx
mov dword [rax], ebp
call sym.free
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14000282b
mov dword [rsp + 0x70], 0
mov rdx, qword [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000282b
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x14000282b
mov ecx, r8d
mov edx, 1
mov dword [rsp + 0x4c], r8d
call sym.calloc
mov rbx, rax
test rax, rax
je 0x14000282b
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140002930
mov rcx, rbx
call sym.free
jmp 0x14000282b
mov rbx, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor r14d, r14d
jmp 0x140002837