Function at 0x180042dc0
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response
Reference http user-agent string
Set http header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x18009e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movzx eax, byte [rcx + 4]
mov r14, rcx
mov rbp, qword [rsp + 0xf8]
neg al
mov rbx, qword [rsp + 0xf0]
mov r15d, r8d
mov rsi, qword [rsp + 0x100]
lea r8, [r14 + 0x40]
sbb ecx, ecx
mov rdi, r9
and ecx, 0x800000
cmp qword [r8 + 0x18], 8
jb 0x180042e21
mov r8, qword [r8]
mov dword [rsp + 0x30], ecx
xor r12d, r12d
mov rcx, qword [r14 + 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [r14 + 0x18], rax
mov rcx, rax
test rax, rax
je 0x1800430a8
cmp byte [r14 + 4], r12b
je 0x180042e77
mov r9d, 4
mov dword [rsp + 0x48], 0x3301
lea r8, [rsp + 0x48]
mov edx, 0x1f
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [r14 + 0x18]
test r15d, r15d
je 0x180042e9b
mov r9d, 4
mov dword [rsp + 0x48], r12d
lea r8, [rsp + 0x48]
mov edx, 0x58
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [r14 + 0x18]
test rdi, rdi
je 0x180042eb9
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rcx, qword [r14 + 0x18]
test rbp, rbp
lea rdx, str.Connection:_keep_alive_r_n_t_t_t_tUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:12.0__r_n_t_t_t_tlike_Gecko_r_n_t_t_t_tAccept:___r_n
mov eax, r12d
cmovne rdx, rbp
test rbx, rbx
je 0x180042ee0
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x180042ed6
mov qword [rsp + 0x30], r12
mov r9, rbx
mov dword [rsp + 0x28], eax
mov r8d, 0xffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1800430a8
mov rcx, qword [r14 + 0x18]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1800430a8
mov rcx, qword [r14 + 0x18]
lea rax, [rsp + 0x4c]
xorps xmm0, xmm0
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x4c], gethostbyname
mov edx, reloc.WS2_32.dll_send
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1800430a8
mov r8d, 0xa
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.180066ac0
mov dword [r14], eax
cmp eax, 0x194
je 0x1800430a8
test rsi, rsi
je 0x180043098
mov ecx, 0x1000
call fcn.1800656cc
mov rdi, rax
test rax, rax
je 0x1800430a8
mov rcx, qword [r14 + 0x18]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18004307c
nop
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x18004309c
cmp r8d, 0x1000
jbe 0x180042ff9
mov rcx, rdi
call fcn.1800656d4
mov ecx, dword [rsp + 0x48]
call fcn.1800656cc
mov rdi, rax
test rax, rax
je 0x1800430a8
mov r8d, dword [rsp + 0x48]
mov rcx, qword [r14 + 0x18]
lea r9, [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18004307c
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov rax, rdx
mov ebp, dword [rsp + 0x50]
sub rax, rcx
cmp rbp, rax
ja 0x180043052
lea rax, [rcx + rbp]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x18004303a
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rbp
mov rcx, rbx
mov rdx, rdi
call fcn.18007a0c0
mov byte [rbx + rbp], r12b
jmp 0x180043065
mov r9, rdi
mov qword [rsp + 0x20], rbp
mov rdx, rbp
mov rcx, rsi
call fcn.18004bf80
mov rcx, qword [r14 + 0x18]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x180042fc0
mov rcx, rdi
call fcn.1800656d4
cmp qword [rsi + 0x18], 0x10
mov rax, rsi
jb 0x180043091
mov rax, qword [rsi]
mov qword [rsi + 0x10], r12
mov byte [rax], r12b
mov al, 1
jmp 0x1800430aa
mov rcx, rdi
call fcn.1800656d4
mov al, 1
jmp 0x1800430aa
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180056f00
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret