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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4431cf
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x421], dl
mov esi, ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x434], 1
mov byte [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0x430], ecx
test ecx, ecx
je 0x4239b2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
push dword [ebp + 0x50]
cmovae eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x43c], edx
test edx, edx
je 0x4239d3
cmp byte [ebp - 0x421], 0
lea ecx, [ebp + 0x38]
lea eax, [ebp + 0x20]
je 0x423724
cmp dword [ebp + 0x4c], 8
push 0x800000
cmovae ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x420], edi
jmp 0x42374d
cmp dword [ebp + 0x4c], 8
push 0
cmovae ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
je 0x423a87
push 4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x3300
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x423aa8
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x423ac9
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x423aea
mov dword [ebp - 0x418], 0
nop
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4238a1
mov edi, dword [ebp - 0x418]
test edi, edi
je 0x42389b
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp edi, eax
ja 0x423823
lea eax, [edi + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x4237fd
mov eax, dword [esi]
lea esi, [eax + ecx]
push edi
lea eax, [ebp - 0x414]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x420]
jmp 0x4237b0
push edi
lea eax, [ebp - 0x414]
mov byte [ebp - 0x438], 0
push eax
push dword [ebp - 0x438]
mov ecx, esi
push edi
call fcn.0040bb30
mov edi, dword [ebp - 0x420]
jmp 0x4237b0
mov edi, dword [ebp - 0x420]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0x43c]
call esi
push dword [ebp - 0x430]
call esi
mov esi, dword [ebp - 0x42c]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4238fa
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4238f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423984
push ecx
push edx
call fcn.0043f923
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x423944
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42393a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423984
push ecx
push edx
call fcn.0043f923
add esp, 8
mov ecx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp ecx, 8
jb 0x423994
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42398a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42398a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043f923
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f497
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_WinHTTP.
lea ecx, [ebp - 0x44c]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x44c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x420]
push eax
push 0
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_connect_to_host._Error_code:
call fcn.00401fc0
push esi
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___unsigned_long_int_]
push 0x40b340
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_____]
cmp dword [ebp - 0x420], 0
je 0x423a66
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_message:
call fcn.00401fc0
push dword [ebp - 0x420]
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___void_const__]
push 0x40b340
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 - 0x420]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Failed_to_connect_to_host.
lea ecx, [ebp - 0x458]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x458]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_open_HTTP_request.
lea ecx, [ebp - 0x464]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x464]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_set_security_options.
lea ecx, [ebp - 0x470]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x470]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_send_HTTP_request.
lea ecx, [ebp - 0x47c]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x47c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_receive_HTTP_response.
lea ecx, [ebp - 0x488]
call fcn.00402c40
push 0x451608
lea eax, [ebp - 0x488]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3