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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_Nitro_Checker_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
jne 0x1400014f4
lea rdx, str.Error:_Unable_to_open_session_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e90
xor al, al
jmp 0x140001a37
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.discordapp.com
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp - 0x21], rax
test rax, rax
jne 0x140001539
lea rdx, str.Error:_Unable_to_connect_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e90
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x140001a37
cmp qword [rbx + 0x18], 0xf
jbe 0x14000154c
mov rdi, qword [rbx]
add rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140001553
mov rdi, qword [rbx + 0x10]
add rdi, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movabs rdx, 0x7fffffffffffffff
mov ecx, 0xa
movabs r9, 0x7ffffffffffffffe
mov qword [rbp - 9], r14
cmp rbx, rdi
jne 0x140001593
mov rsi, r14
mov r15d, 7
mov qword [rbp - 1], r15
mov word [rbp - 0x19], r14w
jmp 0x1400016a5
sub rdi, rbx
mov qword [rbp - 1], 7
cmp rdi, r9
ja 0x140001a6a
mov esi, 7
cmp rdi, rsi
jbe 0x140001656
mov rsi, rdi
or rsi, 7
cmp rsi, r9
jbe 0x1400015ca
mov rsi, r9
lea rcx, [rdx + rdx]
jmp 0x1400015ea
cmp rsi, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, rdx
ja 0x140001a70
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000162b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a70
mov rcx, rax
call fcn.140003950
mov rcx, rax
test rax, rax
je 0x140001a25
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
movabs r9, 0x7ffffffffffffffe
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rsi
jmp 0x14000165a
test rcx, rcx
je 0x140001649
call fcn.140003950
movabs r9, 0x7ffffffffffffffe
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rsi
jmp 0x14000165a
mov rax, r14
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rsi
jmp 0x14000165a
mov rax, qword [rbp - 0x19]
lea r8, [rbp - 0x19]
cmp rsi, 7
cmova r8, rax
mov rcx, r8
mov rdx, rdi
test rdi, rdi
je 0x140001685
movsx eax, byte [rbx]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x140001671
mov qword [rbp - 9], rdi
mov word [r8 + rdi*2], r14w
mov r15, qword [rbp - 1]
mov rsi, qword [rbp - 9]
movabs rdx, 0x7fffffffffffffff
mov ecx, 0xa
mov rax, r9
sub rax, rsi
cmp rax, 0x20
jb 0x140001a76
lea rax, [rbp - 0x19]
mov r14, qword [rbp - 0x19]
cmp r15, 7
cmova rax, r14
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
lea r13, [rsi + 0x20]
mov edi, 7
lea rbx, [rbp - 0x49]
cmp r13, rdi
jbe 0x140001770
mov rdi, r13
or rdi, 7
cmp rdi, r9
jbe 0x140001703
mov rdi, r9
lea rcx, [rdx + rdx]
jmp 0x140001724
cmp rdi, 0xa
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rdx
ja 0x140001a64
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001757
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a64
mov rcx, rax
call fcn.140003950
test rax, rax
je 0x140001750
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov rax, qword [rbp - 0x29]
jmp 0x14000176c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000176a
call fcn.140003950
mov rbx, rax
mov rax, qword [rbp - 0x29]
jmp 0x14000176c
xor ebx, ebx
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], rdi
movaps xmm0, xmmword [str._api_v6_entitlements_gift_codes_]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x140005670]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x140005680]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x140005690]
movups xmmword [rbx + 0x30], xmm1
lea rcx, [rbx + 0x40]
lea r8, [rsi + rsi]
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [rbx + r13*2], ax
mov rdi, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, rdi
cmp rax, 0x33
jb 0x140001808
lea rax, [rdi + 0x33]
mov qword [rbp - 0x39], rax
lea rbx, [rbp - 0x49]
cmp rcx, 7
cmova rbx, qword [rbp - 0x49]
lea rcx, [rbx + rdi*2]
mov r8d, 0x66
lea rdx, str._with_applicationfalsewith_subscription_plantrue
call sub.VCRUNTIME140.dll_memmove
xor r13d, r13d
mov word [rbx + rdi*2 + 0x66], r13w
lea rax, [rbp - 0x49]
jmp 0x140001822
mov qword [rsp + 0x20], 0x33
mov edx, 0x33
lea rcx, [rbp - 0x49]
call fcn.140003310
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140001893
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000188e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000188e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000398c
movdqa xmm0, xmmword [0x140005820]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r13w
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova r8, qword [rbp + 7]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, [0x1400056a8]
mov rsi, qword [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x140001910
lea rdx, str.Error:_Unable_to_open_request_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002e90
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x1400019a1
xor bl, bl
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001985
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001985
mov dword [rbp - 0x21], r13d
mov dword [rbp - 0x29], 4
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x21]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
movzx ebx, bl
mov eax, 1
cmp dword [rbp - 0x21], 0xc8
cmove ebx, eax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x1400019e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000398c
movdqa xmm0, xmmword [0x140005820]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], r13w
cmp r15, 7
jbe 0x140001a34
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001a2c
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000398c
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003930
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001110
nop
call fcn.1400011b0
int3
call fcn.140001110
nop
call fcn.1400011b0
int3