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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014178b
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x1017b074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
push str.A_Discord_Webhook_Client_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x100ee5ff
push str.WinHttpOpen_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100ecc10
add esp, 8
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 0x100ed2d0
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 0x100ee8c5
mov ebx, dword [esi + 0x10]
lea eax, [ebp - 0x210]
xorps xmm0, xmm0
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x410]
movlpd qword [ebp - 0x478], xmm0
inc ebx
mov dword [ebp - 0x450], eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 0x470], 0
movlpd qword [ebp - 0x464], xmm0
movlpd qword [ebp - 0x45c], xmm0
mov dword [ebp - 0x454], 0
movlpd qword [ebp - 0x448], xmm0
mov dword [ebp - 0x47c], 0x3c
mov dword [ebp - 0x468], 0x100
mov dword [ebp - 0x44c], 0x100
jb 0x100ee67a
mov eax, dword [esi]
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x480], eax
call fcn.100ed390
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x428]
mov eax, esi
cmovae ecx, dword [ebp - 0x428]
cmp dword [esi + 0x14], 0x10
jb 0x100ee6bc
mov eax, dword [esi]
push dword [ebp - 0x480]
push ecx
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x47c]
push ecx
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x428]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x100ee73d
push str.WinHttpCrackUrl_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100ecc10
add esp, 8
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 0x100ed2d0
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 0x100ee883
push 0
push dword [ebp - 0x464]
push dword [ebp - 0x46c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x480], ecx
test ecx, ecx
jne 0x100ee765
push str.WinHttpConnect_failed:
jmp 0x100ee705
xor eax, eax
mov edx, 0x800000
cmp dword [ebp - 0x470], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0x450]
push str.POST
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x100ee7dc
push str.WinHttpOpenRequest_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100ecc10
add esp, 8
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 0x100ed2d0
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 - 0x480]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x100ee883
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.100efd70
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
push 0
cmovae ecx, dword [ebp - 0x440]
push eax
push eax
push ecx
push 0xffffffffffffffff
push str.Content_Type:_application_json_r_n
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x100ee826
push str.WinHttpSendRequest_failed:
jmp 0x100ee838
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x100ee864
push str.WinHttpReceiveResponse_failed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100ecc10
add esp, 8
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 0x100ed2d0
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 dword [ebp - 0x480]
call esi
push edi
call esi
lea ecx, [ebp - 0x440]
call fcn.100ed7e0
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x100ee8c5
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100ee8bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ee8bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101402f2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10140300
mov esp, ebp
pop ebp
ret