Function at 0x18005e930
Capabilities:
Read http header
Receive http response

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x61], rdx
xor r14d, r14d
mov dword [rbp - 0x71], r14d
mov qword [rdx + 0x18], 0xf
mov qword [rdx + 0x10], r14
cmp qword [rdx + 0x18], 0x10
jb 0x18005e989
mov rax, qword [rdx]
jmp 0x18005e98c
mov rax, rbx
mov byte [rax], r14b
xor r8d, r8d
lea rdx, [0x1800fd01d]
mov rcx, rbx
call fcn.180009ff0
mov dword [rbp - 0x71], 1
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x18005ea05
lea rax, vtable.std::exception.0
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, str.GetResponse::WinHttpReceiveResponse_failed
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0x17], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0x17]
call fcn.1800b26b0
int3
mov dword [rbp - 0x19], r14d
mov dword [rbp + 0x3b], 4
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x3b]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18005ea85
lea rax, vtable.std::exception.0
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, str.GetResponse::GetResponseWinHttpQueryHeaders_failed
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0x17], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0x17]
call fcn.1800b26b0
int3
mov ecx, dword [rbp - 0x19]
mov eax, ecx
sub eax, 0xc8
je 0x18005ec0e
sub eax, 0xc9
je 0x18005ebc1
sub eax, 3
je 0x18005eb74
cmp eax, 3
je 0x18005eb27
mov edx, ecx
lea rcx, [rbp - 0x11]
call fcn.180057410
mov rbx, rax
mov qword [rbp + 0x2f], 0xf
mov qword [rbp + 0x27], r14
mov byte [rbp + 0x17], 0
mov r8d, 0x13
lea rdx, str.unkown_http_error__
lea rcx, [rbp + 0x17]
call fcn.180009ff0
nop
mov r8, rbx
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.18002fb50
nop
lea r8, [0x1801021b8]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.18000c8f0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180001440
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
lea rax, vtable.std::exception.0
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, str.access_denied__407_
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0x17], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0x17]
call fcn.1800b26b0
int3
lea rax, vtable.std::exception.0
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, str.resource_not_found__404_
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0x17], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0x17]
call fcn.1800b26b0
int3
lea rax, vtable.std::exception.0
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, str.access_denied__401_
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0x17], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0x17]
call fcn.1800b26b0
int3
xor r8d, r8d
lea rdx, [0x1800fd01d]
mov rcx, rbx
call fcn.180009ff0
mov dword [rbp + 0xf], r14d
lea rdx, [rbp + 0xf]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18005ed1d
nop word [rax + rax]
mov eax, dword [rbp + 0xf]
test eax, eax
je 0x18005ed18
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
lea edx, [rax + 1]
lea rcx, [rbp + 0x17]
call fcn.18002d000
mov dword [rbp + 0x37], r14d
lea r9, [rbp + 0x37]
mov r8d, dword [rbp + 0xf]
mov rsi, qword [rbp + 0x17]
mov rdx, rsi
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18005ecc6
mov eax, dword [rbp + 0x37]
test eax, eax
je 0x18005ecbb
mov r8d, eax
mov rdx, rsi
mov rcx, rbx
call fcn.18000a370
nop
lea rcx, [rbp + 0x17]
call fcn.180024260
mov dword [rbp + 0xf], r14d
lea rdx, [rbp + 0xf]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18005ec40
jmp 0x18005ed1d
lea rcx, [rbp + 0x17]
call fcn.180024260
jmp 0x18005ed18
lea rax, vtable.std::exception.0
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x79], rax
lea rax, str.GetResponse::WinHttpReadData_failed
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
mov rax, rbx
jmp 0x18005ed6f
lea rax, vtable.std::exception.0
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x79], rax
lea rax, str.GetResponse::WinHttpQueryDataAvailable_failed
mov qword [rbp - 0x11], rax
mov byte [rbp - 9], 1
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x11]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1800ae8d0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret