Function at 0x1800979c0
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x180129400]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov rsi, rdx
xor edi, edi
mov r15, qword [0x180170a20]
mov ecx, 0x28
call fcn.18009fd50
mov r14, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
mov qword [rax + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r13, rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
lea rbx, [rbx + 1]
cmp byte [rsi + rbx], dil
jne 0x180097a90
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9d, [rbx + 1]
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
mov rdx, r12
test eax, eax
je 0x180097ef9
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.1800a0208
mov rdi, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x70], 0x68
lea rax, [rbp + 0x50]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x100
lea rax, [rbp + 0x250]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x200
xor esi, esi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], esi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x30], esi
lea edx, [r12 + r12]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov ebx, eax
mov rcx, rdi
call fcn.1800a0104
test ebx, ebx
je 0x180097ef9
cmp byte [r15 + 0x80], sil
je 0x180097ba1
mov dword [rbp - 0x10], 3
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov r9d, 0x18
lea r8, [rbp - 0x10]
mov edx, 0x26
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
movzx eax, word [rbp - 0x6c]
test ax, ax
mov r8d, eax
jne 0x180097bb3
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, qword [rbp - 0x78]
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x180097beb
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_connect
jmp 0x180097f13
mov eax, esi
mov ecx, 0x800000
cmp dword [rbp - 0x7c], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rbp - 0x48]
lea rdx, [0x180111c70]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x180097c4e
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_open_request
jmp 0x180097f13
lea rdx, [r15 + 0x58]
mov rcx, rsi
call fcn.1800978c0
test al, al
jne 0x180097c8f
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_set_user_agent
jmp 0x180097f13
mov rdi, qword [r15 + 0x40]
mov r15, qword [r15 + 0x48]
cmp rdi, r15
je 0x180097da3
lea rbx, [rdi + 0x38]
xor r14d, r14d
nop word [rax + rax]
mov r8, qword [rbx - 0x28]
cmp qword [rbx - 0x20], 0xf
jbe 0x180097cc3
add r8, qword [rdi]
mov rdx, qword [rdi]
jmp 0x180097cc9
add r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.180096430
nop
lea rdx, [rbx - 0x18]
cmp qword [rbx], 0xf
jbe 0x180097ce9
mov r8, qword [rdx]
add r8, qword [rbx - 8]
mov rdx, qword [rdx]
jmp 0x180097cf0
mov r8, qword [rbx - 8]
add r8, rdx
lea rcx, [rbp + 0x10]
call fcn.180096430
nop
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180097f90
nop
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.180033c70
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r14
mov qword [rbp + 8], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x48]
call fcn.180032ce0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea rcx, [rbp - 0x10]
call fcn.180032ce0
nop
lea rcx, [rbp + 0x10]
call fcn.180032ce0
nop
lea rcx, [rbp + 0x30]
call fcn.180032ce0
add rdi, 0x40
add rbx, 0x40
cmp rdi, r15
jne 0x180097cb0
mov r14, qword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rsi
test eax, eax
jne 0x180097df8
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_send_request
jmp 0x180097f13
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, rsi
test eax, eax
jne 0x180097e35
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_receive_response
jmp 0x180097f13
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x14], 4
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x14]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1c]
xor r8d, r8d
mov edx, 0x20000013
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rbp - 0x1c]
mov dword [r14 + 0x20], eax
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x18], edi
mov ecx, 0x2000
call fcn.1800a0208
mov rbx, rax
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180097ecd
nop word [rax + rax]
mov r8d, dword [rbp - 0x20]
test r8d, r8d
je 0x180097ecd
lea r9, [rbp - 0x18]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180097ebc
mov r8d, dword [rbp - 0x18]
mov rdx, rbx
mov rcx, r14
call fcn.180007de0
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x180097e90
mov rcx, rbx
call fcn.1800a0104
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, r13d
mov dword [r14 + 0x24], eax
mov rax, r14
jmp 0x180097f51
lea rdx, [0x180111c30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000ad10
lea rdx, str.Failed_to_Initialize_URL
mov rcx, rax
call fcn.18000ad10
lea rdx, [0x1800f6df8]
mov rcx, rax
call fcn.18000ad10
lea rdx, [0x1800350c0]
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]
mov rcx, r14
call fcn.180007c20
mov edx, 0x28
mov rcx, r14
call fcn.1800a0104
xor eax, eax
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.18009fc10
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret