Function at 0x14023e3b0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r10, r9
mov r15, r8
mov r14, rdx
mov edx, dword [rbp + 0xb0]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x14023e44f
lea rcx, [rbp - 0x40]
call fcn.140095300
nop
mov r8, rax
lea rdx, str.WinHttp:_Invalid_scheme__
lea rcx, [rsp + 0x48]
call fcn.140094cf0
nop
mov r8b, 0x29
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14020a460
nop
cmp qword [rax + 0x18], 0x10
jb 0x14023e42d
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
lea rax, vtable.std::logic_error.0
mov qword [rsp + 0x78], rax
lea rdx, [0x1403d7150]
lea rcx, [rsp + 0x78]
call fcn.14028e980
nop
mov eax, 0x800000
xor esi, esi
cmp edx, 2
cmovne eax, esi
cmp qword [r9 + 0x18], 8
jb 0x14023e466
mov r10, qword [r9]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, r10
lea rdx, [0x14034b9c8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x14023e4e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffd120
cmp eax, 0xbc
ja 0x14023e4b1
call fcn.1402403b0
jmp 0x14023e4b6
call fcn.1400e1650
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r9, str.WinHttp:_Failed_to_open_request
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.1400e16e0
lea rdx, [0x1403d7448]
lea rcx, [rbp - 0x40]
call fcn.14028e980
int3
mov rdx, r15
mov rcx, rbx
call fcn.14023ff70
mov rcx, rbx
call fcn.14023fef0
test al, al
jne 0x14023e510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Failed_to_send_request
jmp 0x14023ed31
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14023e533
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Failed_to_receive_response
jmp 0x14023ed31
mov r8d, reloc.WS2_32.dll_send
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14023dde0
nop
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, 6
lea rdx, str.Status
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov rax, qword [r15]
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e5a1
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, recv
lea rdx, str.Content_Type
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023e60c
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e639
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov r8d, 5
mov rdx, rbx
lea rcx, [rbp]
call fcn.14023dde0
nop
cmp qword [rbp + 0x10], 0
jne 0x14023e65e
mov qword [rsp + 0x68], 0xffffffffffffffff
jmp 0x14023e672
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp]
call fcn.140218400
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, recv
lea rdx, str.Content_Length
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r9, qword [r15]
lea r8, [rbp]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e6ce
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov r8d, getprotobyname
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14023dde0
nop
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, recv
lea rdx, str.Content_MD5
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov rax, qword [r15]
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e73c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, 4
lea rdx, str.ETag
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, reloc.WS2_32.dll_getprotobynumber
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023e7a7
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e7d4
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Last_Modified
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, recv
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023e83f
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e86c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, 7
lea rdx, str.Expires
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, 0xa
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023e8d7
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e904
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Cache_Control
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, getprotobyname
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023e96f
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023e99c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Accept_Ranges
lea rcx, [rsp + 0x48]
call fcn.14002c3d0
nop
mov r8d, 0x2a
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14023dde0
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14023ea07
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002e610
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14023ea34
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x20]
mov rdi, qword [rbp - 0x20]
mov r12, qword [rbp - 8]
cmp r12, 8
cmovae rcx, rdi
mov r9d, 3
lea r8, [0x140311e30]
mov rdx, qword [rbp - 0x10]
call fcn.140027800
test eax, eax
jne 0x14023ea92
mov rcx, r14
call fcn.14023dd70
nop
lea rcx, [rbp + 0x20]
call fcn.14002e550
nop
lea rcx, [rbp]
call fcn.14002e550
nop
lea rcx, [rbp - 0x20]
call fcn.14002e550
jmp 0x14023ed3a
lea rcx, [rbp - 0x20]
cmp r12, 8
cmovae rcx, rdi
mov r9d, 3
lea r8, [0x140311e38]
mov rdx, qword [rbp - 0x10]
call fcn.140027800
test eax, eax
jne 0x14023eb20
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
lea r8d, [rax + 0xf]
lea rdx, str.X_Entity_Length
lea rcx, [rbp - 0x40]
call fcn.14002c3d0
nop
mov r12, qword [rsp + 0x68]
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.1400ee950
nop
mov r9, qword [r15]
mov r8, rax
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.14002e550
nop
lea rcx, [rbp - 0x40]
call fcn.14002e550
mov byte [rsp + 0x40], 1
jmp 0x14023ebf4
lea rcx, [rbp - 0x20]
cmp r12, 8
cmovae rcx, rdi
mov r9d, 3
lea r8, [0x140311e40]
mov rdx, qword [rbp - 0x10]
call fcn.140027800
lea rcx, [rbp - 0x40]
test eax, eax
jne 0x14023ecd5
lea r8d, [rax + 0x35]
mov rdx, rbx
call fcn.14023dde0
nop
cmp qword [rbp - 0x30], 0
jne 0x14023eb7e
mov edx, 0x1e
mov rcx, r14
call fcn.14023d890
nop
lea rcx, [rbp - 0x40]
call fcn.14002e550
jmp 0x14023ea70
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.14023f8f0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x58], xmm1
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x28]
mov r8, qword [rsp + 0x48]
cmp rax, r8
je 0x14023ebb8
mov edx, 0xa
jmp 0x14023eb67
mov rax, qword [rsp + 0x58]
dec rax
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14023ebd1
mov edx, listen
jmp 0x14023eb67
sub rcx, r8
inc rcx
mov r12, qword [rsp + 0x68]
cmp r12, rcx
je 0x14023ebeb
mov edx, recv
jmp 0x14023eb67
lea rcx, [rbp - 0x40]
call fcn.14002e550
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_recv]
xor eax, eax
mov qword [rsp + 0x68], rax
mov edx, 0x10000
lea rcx, [rsp + 0x68]
call fcn.140028850
nop
mov dword [rbp - 0x48], esi
mov rax, qword [r15]
movzx edx, byte [rsp + 0x40]
mov rcx, r15
call qword [rax + 0x18]
mov rdi, qword [rsp + 0x68]
nop word [rax + rax]
lea r9, [rbp - 0x48]
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14023eca7
mov r8d, dword [rbp - 0x48]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14023db20
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x70], xmm0
mov rax, qword [r15]
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [rax + 0x20]
mov r8d, dword [rbp - 0x48]
add rsi, r8
test r8d, r8d
jne 0x14023ec30
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_getservbyport]
test r12, r12
js 0x14023ec9d
cmp r12, rsi
je 0x14023ec9d
mov edx, 1
mov rcx, r14
call fcn.14023d890
jmp 0x14023ecbf
mov rcx, r14
call fcn.14023dd70
jmp 0x14023ecbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Error_in_WinHttpReadData
mov rcx, r14
call fcn.14023fe50
nop
test rdi, rdi
je 0x14023ea70
mov rcx, rdi
call fcn.14026e340
jmp 0x14023ea70
lea rdx, [rbp - 0x20]
call fcn.14022b480
nop
mov r8, rax
lea rdx, str.WinHttp:_Unexpected_status_code__
lea rcx, [rsp + 0x48]
call fcn.140094cf0
nop
mov r8b, 0x29
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14020a460
nop
cmp qword [rax + 0x18], 0x10
jb 0x14023ed0e
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x68], rax
lea rdx, [0x1403d6f78]
lea rcx, [rsp + 0x68]
call fcn.14028e980
nop
mov rcx, r14
call fcn.14023fe50
nop
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, r14
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret