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

Disassembly:
push ebp
lea ebp, [esp - 0x434]
sub esp, 0x434
push 0xffffffffffffffff
push 0x10042f44
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10078d40]
xor eax, ebp
mov dword [ebp + 0x430], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
push eax
push eax
push eax
push eax
push str.A_Discord_Webhook_Client_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x10016b2f
push str.WinHttpOpen_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.10017952
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x10018ca4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x10016d15
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp + 0x230]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], eax
mov ecx, 0x100
lea eax, [ebp + 0x30]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x20], ecx
call fcn.100171c3
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x50]
cmp dword [ebp + 0x14], 7
lea eax, [ebp]
push ecx
cmova eax, dword [ebp]
push esi
push esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10016bc5
push str.WinHttpCrackUrl_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.10017952
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x10018ca4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10016d0d
push esi
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
jne 0x10016be0
push str.WinHttpConnect_failed:
jmp 0x10016b8e
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x44], 2
cmove eax, ecx
push eax
push esi
push esi
push esi
push dword [ebp - 0x24]
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x10016c4b
push str.WinHttpOpenRequest_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.10017952
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x10018ca4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push edi
call esi
jmp 0x10016d0d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x18]
push eax
call fcn.10016d38
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
push 0
push dword [ebp + 0x28]
cmova eax, dword [ebp + 0x18]
push dword [ebp + 0x28]
mov byte [ebp - 4], 1
push eax
push 0xffffffffffffffff
push str.Content_Type:_application_json_r_n
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10016cb6
push str.WinHttpSendRequest_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.10017952
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x10018ca4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x10]
jmp 0x10016cf7
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10016cf6
push str.WinHttpReceiveResponse_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.10017952
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x10018ca4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [ebp - 0x10]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push ebx
call esi
push edi
call esi
lea ecx, [ebp + 0x18]
call fcn.10011432
lea ecx, [ebp]
call fcn.10011458
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x430]
xor ecx, ebp
call fcn.1003f419
add ebp, 0x434
leave
ret