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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140084200]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x18], rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
mov dword [rsp + 0x40], 1
add rcx, 8
xor edx, edx
call fcn.1400408f0
nop
lea rsi, [r15 + 0x18]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
xor r12d, r12d
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r12b
mov dword [rsp + 0x40], 1
mov dword [r15], r12d
xor r8d, r8d
lea rdx, [0x14006eaff]
mov rcx, rsi
call fcn.140041070
mov byte [r15 + 0x38], r12b
mov dword [r15 + 0x3c], r12d
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14003ecda
mov eax, r12d
mov ecx, r12d
mov ebx, r12d
jmp 0x14003ece6
mov ecx, eax
cmp qword [rbx + 0x18], 0xf
jbe 0x14003ece6
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14003ed1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x3c], eax
mov byte [r15 + 0x38], 0
jmp 0x14003f4c7
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14003ed08
mov dword [rbp - 0x20], r12d
mov dword [rbp - 0x10], 4
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14003ed08
mov eax, dword [rbp - 0x20]
mov dword [r15], eax
mov dword [rbp - 0x4c], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x16
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003f410
mov ecx, dword [rbp - 0x4c]
shr rcx, 1
mov eax, 2
mul rcx
mov r13, 0xffffffffffffffff
cmovb rax, r13
mov rcx, rax
call fcn.140067270
mov r14, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov edx, 0x16
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14003f408
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140040190
nop
cmp qword [rsp + 0x58], 0
jne 0x14003ee20
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov rbx, r12
mov qword [rbp + 0x58], rbx
mov esi, 0xf
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x48], bl
jmp 0x14003eecc
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, r13d
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp + 0x18]
call fcn.140040440
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0xf
cmova rdx, qword [rbp + 0x18]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, r13d
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rbp + 0x58], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
movq rbx, xmm1
mov dword [rsp + 0x40], 0x11
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14003ef19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ef14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003ef14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006710c
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140075268]
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r13d, 0x19
mov dword [rsp + 0x40], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x6c], edx
lea rax, [rbp + 0x80]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x80], rax
lea rdx, [rbp + 0x48]
cmp rsi, 0xf
cmova rdx, qword [rbp + 0x48]
mov r9d, 2
mov r8, rbx
lea rcx, [rbp + 0x80]
call fcn.140040f30
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x70]
add rcx, rax
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]
movzx r8d, al
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x70]
call fcn.140042c60
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14003f31d
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x40]
mov r14, qword [rbp - 0x28]
test rdi, rdi
je 0x14003f097
lea rax, [rbp - 0x40]
cmp r14, 0xf
cmova rax, rsi
lea rcx, [rdi - 1]
cmp byte [rcx + rax], 0xd
jne 0x14003f097
mov qword [rbp - 0x30], rcx
lea rax, [rbp - 0x40]
cmp r14, 0xf
cmova rax, rsi
mov byte [rax + rcx], 0
mov r14, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x40]
lea r12, [rbp - 0x40]
cmp r14, 0xf
cmova r12, rsi
test rdi, rdi
je 0x14003f0c5
mov r8, rdi
mov edx, 0x3a
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14003f0c5
sub rbx, r12
jmp 0x14003f0cc
mov rbx, 0xffffffffffffffff
xor r12d, r12d
cmp rbx, 0xffffffffffffffff
je 0x14003f2d4
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], r12
mov r8, rbx
cmp rdi, rbx
cmovb r8, rdi
lea rdx, [rbp - 0x40]
cmp r14, 0xf
cmova rdx, rsi
lea rcx, [rbp + 0x18]
call fcn.140041d30
or r13d, 2
mov dword [rsp + 0x40], r13d
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
mov rax, qword [rbp - 0x30]
cmp rax, rbx
jb 0x14003f4f4
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
add rdx, rbx
lea rcx, [rbp - 8]
call fcn.140041d30
or r13d, 4
mov dword [rsp + 0x40], r13d
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14003f1b1
lea rax, [rbp - 8]
mov rdx, qword [rbp - 8]
mov r8, qword [rbp + 0x10]
cmp r8, 0xf
cmova rax, rdx
cmp byte [rax], 0x20
jne 0x14003f1b1
mov eax, 1
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rbp - 8]
cmp r8, 0xf
cmova rcx, rdx
sub rbx, rax
lea r8, [rbx + 1]
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 8], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140040aa0
mov byte [rsp + 0x48], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov ecx, 0x20
call fcn.140067234
mov rbx, rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rbx
lea rdx, [rbp - 8]
mov rcx, rbx
call fcn.140040590
mov qword [rbp + 0x40], r12
mov qword [rsp + 0x50], rbx
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x70]
call fcn.140040590
mov rdx, rax
lea rcx, [r15 + 8]
call fcn.14003f920
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
mov byte [rsp + 0x48], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rsp + 0x50], rcx
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140040aa0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x14003f299
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f293
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f356
call fcn.14006710c
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x14003f2d4
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f2cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f35d
call fcn.14006710c
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x70]
add rcx, rax
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]
movzx r8d, al
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x70]
call fcn.140042c60
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x14003f050
mov rdi, qword [rbp - 0x18]
mov r14, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14003f369
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f364
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f364
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14006710c
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x6c], edx
lea rcx, [rbp + 0x80]
call fcn.140040000
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 0xf
jbe 0x14003f404
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f3ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f3ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006710c
lea rsi, [r15 + 0x18]
mov rcx, r14
call fcn.14006710c
mov dword [rbp - 0x50], r12d
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14003f4a8
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x14003f4b7
lea ecx, [rax + 1]
call fcn.140067270
mov rbx, rax
mov r8d, dword [rbp - 0x50]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x18], r12d
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x50]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14003f48f
mov r8d, dword [rbp - 0x18]
mov rdx, rbx
mov rcx, rsi
call fcn.1400402d0
mov rcx, rbx
call fcn.14006710c
cmp dword [rbp - 0x50], 0
ja 0x14003f420
jmp 0x14003f4b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x3c], eax
mov byte [r15 + 0x38], 0
mov rcx, rbx
call fcn.14006710c
jmp 0x14003f4b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x3c], eax
mov byte [r15 + 0x38], 0
cmp byte [r15 + 0x38], 0
jne 0x14003f4c7
mov byte [r15 + 0x38], 1
mov dword [r15 + 0x3c], r12d
mov rax, r15
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140066f70
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400411d0
nop
int3