Function at 0x180001610
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rdi
push r13
push r15
mov eax, 0x1700
call fcn.180001a30
sub rsp, rax
mov rax, qword [0x180020040]
xor rax, rsp
mov qword [rsp + 0x16d0], rax
mov r15, r8
mov r13, rdx
test rcx, rcx
je 0x180001493
test rdx, rdx
je 0x180001493
test r8, r8
je 0x180001493
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x180001050
test rax, rax
je 0x180001493
mov rax, rdi
inc rax
cmp byte [rax + rdx], 0
jne 0x180001065
test rax, rax
je 0x180001493
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x180001080
test rax, rax
je 0x180001493
mov qword [rsp + 0x1738], rbx
lea r8, str._api_v10_channels__s_messages
mov qword [rsp + 0x16f8], rbp
mov r9, rcx
mov qword [rsp + 0x16f0], rsi
lea rcx, [rsp + 0x1d0]
mov qword [rsp + 0x16e8], r12
mov edx, pe_nt_image_headers64
xor r12d, r12d
mov qword [rsp + 0x16e0], r14
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], 4
call fcn.180001640
mov rsi, rdi
nop word [rax + rax]
inc rsi
cmp byte [r15 + rsi], r12b
jne 0x1800010f0
lea rcx, [rsi*2 + 1]
call fcn.180004ed4
mov r14, rax
mov rbx, r12
mov rbp, r12
test rsi, rsi
je 0x1800011cf
lea r9, [0x180000000]
nop
movsx edx, byte [r15 + rbp]
mov r8d, edx
lea eax, [rdx - 8]
cmp eax, 0x54
ja case.0x180001146.14
cdqe
movzx eax, byte [r9 + rax + 0x14c0]
mov ecx, dword [r9 + rax*4 + 0x14a4]
add rcx, r9
jmp rcx
mov byte [rbx + r14], 0x5c
mov byte [rbx + r14 + 1], dl
add rbx, 2
jmp 0x1800011c3
mov word [rbx + r14], 0x625c
add rbx, 2
jmp 0x1800011c3
mov word [rbx + r14], 0x665c
add rbx, 2
jmp 0x1800011c3
mov word [rbx + r14], 0x6e5c
add rbx, 2
jmp 0x1800011c3
mov word [rbx + r14], 0x725c
add rbx, 2
jmp 0x1800011c3
mov word [rbx + r14], 0x745c
add rbx, 2
jmp 0x1800011c3
lea rax, [r14 + rbx]
cmp dl, 0x1f
ja 0x1800011be
lea rdx, str.u_04x
mov rcx, rax
call fcn.1800016a0
add rbx, 6
lea r9, [0x180000000]
jmp 0x1800011c3
mov byte [rax], dl
inc rbx
inc rbp
cmp rbp, rsi
jb 0x180001120
mov r9, r14
mov byte [rbx + r14], r12b
lea r8, str._content_:__s_
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.180001640
mov rcx, r14
call fcn.180004ec0
mov r14, qword [rsp + 0x16e0]
lea rax, [rsp + 0x50]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x180001201
mov r9d, edi
mov qword [rsp + 0x20], r13
lea r8, str.Content_Type:_application_json_r_nContent_Length:__lu_r_nAuthorization:_Bot__s_r_n
mov edx, 0x200
lea rcx, [rsp + 0x2d0]
call fcn.180001640
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.Discord_Bot
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
jne 0x180001261
lea rcx, str.InternetOpen
call fcn.180001520
jmp 0x18000133a
mov qword [rsp + 0x38], r12
lea rdx, str.discord.com
mov dword [rsp + 0x30], r12d
mov r8d, 0x1bb
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbp, rax
test rax, rax
jne 0x1800012aa
lea rcx, str.InternetConnect
call fcn.180001520
jmp 0x180001331
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x1d0]
mov dword [rsp + 0x30], 0xc00000
lea rdx, str.POST
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
jne 0x1800012f2
lea rcx, str.HttpOpenRequest
call fcn.180001520
jmp 0x180001328
mov r9d, 0xa0000000
lea rdx, [rsp + 0x2d0]
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x18000137c
lea rcx, str.HttpAddRequestHeaders
call fcn.180001520
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
mov rsi, qword [rsp + 0x16f0]
mov rbp, qword [rsp + 0x16f8]
mov rbx, qword [rsp + 0x1738]
mov r12, qword [rsp + 0x16e8]
mov rcx, qword [rsp + 0x16d0]
xor rcx, rsp
call fcn.180001a90
add rsp, 0x1700
pop r15
pop r13
pop rdi
ret
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test eax, eax
jne 0x1800013a5
lea rcx, str.HttpSendRequest
jmp 0x180001465
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000145e
mov r9d, dword [rsp + 0x40]
lea r8, str.Status_code:__lu
mov edx, 0x80
lea rcx, [rsp + 0x150]
call fcn.180001640
mov r9d, dword [rsp + 0x40]
lea eax, [r9 - 0xc8]
test eax, 0xfffffffa
jne 0x180001443
cmp r9d, 0xcd
je 0x180001443
lea r9, [rsp + 0x48]
mov r8d, 0xfff
lea rdx, [rsp + 0x6d0]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000143a
mov eax, dword [rsp + 0x48]
cmp rax, 0x1000
jae 0x18000149d
mov byte [rsp + rax + 0x6d0], r12b
jmp 0x18000146a
lea rcx, [0x180015518]
jmp 0x180001465
lea r8, str.Request_failed_with_status_code:__lu
mov edx, 0x200
lea rcx, [rsp + 0x4d0]
call fcn.180001640
jmp 0x18000146a
lea rcx, str.HttpQueryInfo
call fcn.180001520
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
sete r12b
mov eax, r12d
jmp 0x18000133f
mov eax, 1
jmp 0x18000135f
call fcn.180001808
int3
mov r8, qword [str.hello]
mov rdx, qword [str.MTI1NDYzODcxNDY4NDk2NDg5Ng.GBtWzb.PcU17eN64ps6LdCrc2tqvSrDUIcnmLG9zQNzKE]
mov rcx, qword [section..data]
jmp section..text