Function at 0x180001950
Capabilities:
Check http status code
Encode data using xor
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
sub rsp, 0x1c0
mov rax, qword [0x180046020]
xor rax, rsp
mov qword [rsp + 0x178], rax
xor esi, esi
lea rax, str._O__TX
mov rbx, rcx
mov dword [rsp + 0x170], esi
mov r14, r9
lea rcx, [rsp + 0x50]
mov rdi, r8
mov r13d, esi
lea edx, [rsi + 2]
mov r15d, esi
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800019a0
cmp dword [0x180046030], 2
lea ebp, [rdx + 4]
mov eax, dword [rax]
mov r8d, esi
mov dword [rcx], eax
lea eax, [rdx + 0x1f]
jl 0x180001b7b
movdqa xmm5, xmmword [0x18003fd30]
lea rcx, [rsp + 0x50]
movdqa xmm4, xmmword [0x18003fd90]
movaps xmmword [rsp + 0x1b0], xmm6
movaps xmmword [rsp + 0x1a0], xmm7
movdqa xmm7, xmmword [0x18003fd50]
movaps xmmword [rsp + 0x190], xmm8
movaps xmmword [rsp + 0x180], xmm9
movdqa xmm9, xmmword [0x18003fd60]
movd xmm6, ebp
movd xmm8, eax
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x80
jl 0x180001a60
movaps xmm9, xmmword [rsp + 0x180]
movaps xmm8, xmmword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x1a0]
movaps xmm6, xmmword [rsp + 0x1b0]
cmp r8d, 0x82
jge 0x180001bc8
movsxd rax, r8d
lea r9, [rsp + 0x50]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x33
xor word [r9 - 2], ax
cmp r8d, 0x82
jl 0x180001b90
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x180001c2f
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
je 0x180001c2f
mov dword [rsp + 0x30], 0x800100
lea rdx, [0x18003f4f8]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov r9d, ebp
mov dword [rsp + 0x168], 0x3300
lea r8, [rsp + 0x168]
mov edx, 0x1f
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, 0x1388
mov dword [rsp + 0x20], 0x1388
mov r9d, edx
mov r8d, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test r15, r15
je 0x180001ca1
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180001ca1
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea rax, [rsp + 0x16c]
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x164]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x164], esi
mov edx, 0x20000013
mov dword [rsp + 0x16c], ebp
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [rsp + 0x164], 0xc8
jne 0x180001e2b
test eax, eax
je 0x180001e2b
movzx ebx, byte [rsp + 0x40]
nop dword [rax + rax]
lea rdx, [rsp + 0x160]
mov dword [rsp + 0x160], esi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180001e2b
mov ecx, dword [rsp + 0x160]
inc ecx
call fcn.1800116c0
mov r8d, dword [rsp + 0x160]
xor edx, edx
inc r8d
mov rcx, rax
mov rbp, rax
call fcn.180013f40
mov r8d, dword [rsp + 0x160]
lea r9, [rsp + 0x170]
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x180001d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.1800021c0
jmp 0x180001de4
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], 0
jne 0x180001d83
mov rdx, qword [r14 + 0x18]
mov rcx, qword [r14 + 0x10]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180001dcd
lea rax, [rcx + rdi]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rdx, 0x10
jb 0x180001db3
mov rax, qword [r14]
lea rsi, [rax + rcx]
mov r8, rdi
mov rcx, rsi
mov rdx, rbp
call fcn.180013730
mov byte [rsi + rdi], 0
xor esi, esi
jmp 0x180001de4
mov r9, rbp
mov qword [rsp + 0x20], rdi
movzx r8d, bl
mov rdx, rdi
mov rcx, r14
call fcn.180002020
mov rcx, rbp
call fcn.180011650
cmp dword [rsp + 0x160], 0
ja 0x180001d00
test r15, r15
je 0x180001e08
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x180001e16
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x180001e24
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x180001e2d
xor eax, eax
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.180011630
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret