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

Disassembly:
jmp 0x140103a50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x478]
mov rax, qword [0x14017f080]
xor rax, rbp
mov qword [rbp + 0x400], rax
lea rcx, [0x14019515a]
call fcn.14006c840
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Discord_Token_Validator_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140103ac9
xor al, al
jmp 0x140103d6a
xor r9d, r9d
mov r8w, 0x1bb
lea rdx, str.discord.com
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140103aff
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xor al, al
jmp 0x140103d6a
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._api_v9_users__me
lea rdx, [0x14015b7e8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140103b5c
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xor al, al
jmp 0x140103d6a
lea rax, [rbp + 0x308]
mov qword [rbp + 0x338], rax
lea rax, [rbp + 0x358]
mov qword [rbp + 0x388], rax
lea rcx, [rbp + 0x2e4]
call fcn.14006ae32
mov qword [rbp + 0x3d8], rax
mov rdx, qword [rbp + 0x338]
mov rcx, qword [rbp + 0x430]
call fcn.14006978a
mov qword [rbp + 0x3e0], rax
mov rdx, qword [rbp + 0x388]
mov rcx, qword [rbp + 0x430]
call fcn.140069046
mov qword [rbp + 0x3e8], rax
mov rax, qword [rbp + 0x3d8]
mov r9, rax
mov r8, qword [rbp + 0x3e0]
mov rdx, qword [rbp + 0x3e8]
lea rcx, [rbp + 0x2a8]
call fcn.14006a0ae
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x3f8], rax
mov r8, qword [rbp + 0x3f8]
lea rdx, str.Authorization:_Bearer
lea rcx, [rbp + 0x68]
call fcn.140069c08
nop
lea rcx, [rbp + 0x2a8]
call fcn.14006bf85
nop
lea rcx, [rbp + 0x68]
call fcn.14006a2c0
mov qword [rbp + 0x3d8], rax
lea rcx, [rbp + 0x68]
call fcn.14006a2f7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x3d8]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jne 0x140103cb5
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov byte [rbp + 0x3a4], 0
lea rcx, [rbp + 0x68]
call fcn.14006bf85
movzx eax, byte [rbp + 0x3a4]
jmp 0x140103d6a
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0xc4], eax
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x104], 4
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x104]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xe4]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp dword [rbp + 0xe4], 0xc8
jne 0x140103d43
mov dword [rbp + 0x3d4], 1
jmp 0x140103d4d
mov dword [rbp + 0x3d4], 0
movzx eax, byte [rbp + 0x3d4]
mov byte [rbp + 0x3c4], al
lea rcx, [rbp + 0x68]
call fcn.14006bf85
movzx eax, byte [rbp + 0x3c4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14006be22
mov rax, rdi
mov rcx, qword [rbp + 0x400]
xor rcx, rbp
call fcn.14006aaf9
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret