Function at 0x180001950
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xac0]
sub rsp, 0xbc0
mov rax, qword [0x180048020]
xor rax, rsp
mov qword [rbp + 0xab0], rax
mov rbx, qword [rbp + 0xb20]
lea rdx, str.Referer
mov qword [rsp + 0x48], r8
mov rsi, rcx
xor r12d, r12d
lea r8, [rbp + 0x294]
mov rcx, rbx
mov dword [rbp + 0x2ac], r12d
mov rax, qword [rbx]
mov r15, r9
mov word [rbp + 0x294], r12w
call qword [rax + 0x18]
mov rdx, qword [rbx]
lea r8, [rbp + 0x298]
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov word [rbp + 0x298], r12w
mov r9, qword [rdx + 0x18]
lea rdx, str.User_Agent
call r9
mov rdx, qword [rbx]
lea r8, [rbp + 0x29c]
mov rcx, rbx
mov word [rbp + 0x29c], r12w
mov r14, rax
mov r9, qword [rdx + 0x18]
lea rdx, str.Accept_Language
call r9
lea rcx, [rbp + 0x188]
mov rdx, rax
mov qword [rbp + 0x180], rcx
lea rcx, [rbp + 0x180]
call fcn.1800024d0
mov rdi, qword [rbp + 0x180]
lea rax, [rbp + 0x188]
cmp rdi, rax
je 0x180001a41
mov rcx, rdi
call fcn.18001c064
lea rax, [rsp + 0x68]
mov rdx, r14
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov r13, r12
call fcn.1800024d0
mov rcx, qword [rsp + 0x60]
xor r14d, r14d
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [rsp + 0x60]
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x180001a92
call fcn.18001c064
test rbx, rbx
je 0x180001b0d
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
je 0x180001b0d
mov rdx, qword [rsp + 0x40]
lea rax, [rbp + 0x78]
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x70], rax
call fcn.1800024d0
mov rcx, qword [rbp + 0x70]
lea rdx, [0x180041a10]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x30], 0x800100
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rcx, qword [rbp + 0x70]
mov r12, rax
lea rax, [rbp + 0x78]
cmp rcx, rax
je 0x180001b0d
call fcn.18001c064
mov r9d, 4
mov dword [rbp + 0x2a4], 0x3300
lea r8, [rbp + 0x2a4]
mov rcx, r13
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0x2710
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test r12, r12
je 0x180001bcb
xor edx, edx
lea rcx, [rbp + 0x2b0]
mov r8d, 0x800
call fcn.1800156e0
mov r9, rdi
lea r8, str.Accept_Language:__ws_r_n
mov edx, 0x400
lea rcx, [rbp + 0x2b0]
call fcn.18000a280
lea rax, [rbp + 0x2b0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x180001b90
mov qword [rsp + 0x30], r14
lea rdx, [rbp + 0x2b0]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov rcx, r12
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180001bcb
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea rax, [rbp + 0x2a8]
mov qword [rsp + 0x28], r14
lea r9, [rbp + 0x2a0]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x2a0], r14d
mov edx, 0x20000013
mov dword [rbp + 0x2a8], 4
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [rbp + 0x2a0], 0xc8
jne 0x180001d5e
test eax, eax
je 0x180001d5e
movzx ebx, byte [rbp + 0x294]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp + 0x290]
mov dword [rbp + 0x290], r14d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180001d5e
mov ecx, dword [rbp + 0x290]
inc ecx
call fcn.180012e60
mov r8d, dword [rbp + 0x290]
xor edx, edx
inc r8d
mov rcx, rax
mov r14, rax
call fcn.1800156e0
mov r8d, dword [rbp + 0x290]
lea r9, [rbp + 0x2ac]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x180001ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.18000a2f0
jmp 0x180001d10
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [r14 + rdi], 0
jne 0x180001cb0
mov rdx, qword [r15 + 0x18]
mov rcx, qword [r15 + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180001cf9
lea rax, [rcx + rdi]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x180001ce1
mov rax, qword [r15]
lea rsi, [rax + rcx]
mov r8, rdi
mov rcx, rsi
mov rdx, r14
call fcn.180014ed0
mov byte [rsi + rdi], 0
jmp 0x180001d10
mov r9, r14
mov qword [rsp + 0x20], rdi
movzx r8d, bl
mov rdx, rdi
mov rcx, r15
call fcn.180009da0
mov rcx, r14
call fcn.180012df0
cmp dword [rbp + 0x290], 0
mov r14d, 0
ja 0x180001c30
test r12, r12
je 0x180001d39
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x180001d47
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180001d57
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180001d60
xor eax, eax
mov rcx, qword [rbp + 0xab0]
xor rcx, rsp
call fcn.180012dd0
mov rbx, qword [rsp + 0xc08]
add rsp, 0xbc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret