Function at 0x18001f670
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1800e8400]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rdx
xor r13d, r13d
mov dword [rsp + 0x48], r13d
lea rax, str.application_json
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], r13
mov rbx, qword [0x1800ebb30]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1800d00b0]
mov qword [rsp + 0x70], rax
lea rax, [0x1800adc10]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x48], 1
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r13
mov dword [rbp - 8], r13d
lea rdx, str.__username_:_
lea rcx, [rbp - 0x80]
call fcn.180004960
mov rcx, rax
mov rdx, rbx
call fcn.180004960
mov rcx, rax
lea rdx, str.____content_:__
call fcn.180004960
mov rcx, rax
mov rdx, rdi
call fcn.180004960
mov rcx, rax
lea rdx, [0x1800d0080]
call fcn.180004960
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.180004cf0
lea rdi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdi, qword [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x18001f7c7
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_79.0.3945.74_Safari_537.36_Edg_79.0.309.43
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001f9b9
mov r8d, 0x1bb
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.discordapp.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r15, rax
test rax, rax
je 0x18001f9b0
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x84880100
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [0x1800ebb40]
lea rdx, str.POST
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r14, rax
test rax, rax
je 0x18001f9a7
mov dword [rsp + 0x20], ebx
mov r9, rdi
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x18001f99e
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x80]
mov edx, 0x13
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18001f8e9
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rdi, r13
mov ebx, r13d
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x48]
mov r8d, 8
mov rdx, rax
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18001f980
mov r12, 0xffffffffffffffff
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x18001f97b
mov edx, ebx
add edx, ecx
cmovb rdx, r12
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x18001f95b
mov rdi, rax
mov r8d, dword [rsp + 0x48]
mov ecx, ebx
add rcx, rax
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add ebx, dword [rsp + 0x48]
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x48]
mov r8d, 8
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18001f924
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x18001f997
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rsi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rsp + 0x50]
call fcn.18001f4d0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.180004840
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1800a3dc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret