Function at 0x140001600
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 [0x14000b040]
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 0x140001674
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.140003cb0
xor al, al
jmp 0x140001bb7
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 0x1400016b9
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.140003cb0
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x140001bb7
cmp qword [rbx + 0x18], 0xf
jbe 0x1400016cc
mov rdi, qword [rbx]
add rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x1400016d3
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 0x140001713
mov rsi, r14
mov r15d, 7
mov qword [rbp - 1], r15
mov word [rbp - 0x19], r14w
jmp 0x140001825
sub rdi, rbx
mov qword [rbp - 1], 7
cmp rdi, r9
ja 0x140001bea
mov esi, 7
cmp rdi, rsi
jbe 0x1400017d6
mov rsi, rdi
or rsi, 7
cmp rsi, r9
jbe 0x14000174a
mov rsi, r9
lea rcx, [rdx + rdx]
jmp 0x14000176a
cmp rsi, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, rdx
ja 0x140001bf0
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400017ab
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001bf0
mov rcx, rax
call fcn.140004e70
mov rcx, rax
test rax, rax
je 0x140001ba5
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 0x1400017da
test rcx, rcx
je 0x1400017c9
call fcn.140004e70
movabs r9, 0x7ffffffffffffffe
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rsi
jmp 0x1400017da
mov rax, r14
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rsi
jmp 0x1400017da
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 0x140001805
movsx eax, byte [rbx]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x1400017f1
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 0x140001bf6
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 0x1400018f0
mov rdi, r13
or rdi, 7
cmp rdi, r9
jbe 0x140001883
mov rdi, r9
lea rcx, [rdx + rdx]
jmp 0x1400018a4
cmp rdi, 0xa
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, rdx
ja 0x140001be4
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400018d7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001be4
mov rcx, rax
call fcn.140004e70
test rax, rax
je 0x1400018d0
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov rax, qword [rbp - 0x29]
jmp 0x1400018ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400018ea
call fcn.140004e70
mov rbx, rax
mov rax, qword [rbp - 0x29]
jmp 0x1400018ec
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 [0x140007720]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x140007730]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x140007740]
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 0x140001988
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 0x1400019a2
mov qword [rsp + 0x20], 0x33
mov edx, 0x33
lea rcx, [rbp - 0x49]
call fcn.1400042c0
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 0x140001a13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004eac
movdqa xmm0, xmmword [0x140007ac0]
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, [0x140007758]
mov rsi, qword [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x140001a90
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.140003cb0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x140001b21
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 0x140001b05
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001b05
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 0x140001b64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004eac
movdqa xmm0, xmmword [0x140007ac0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], r13w
cmp r15, 7
jbe 0x140001bb4
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001bac
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140004eac
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140004e50
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