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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d460
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.0041a770
mov eax, dword [0x455398]
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 edi, edx
mov esi, ecx
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x101c], eax
test eax, eax
je 0x40232c
push 0
push 0xf9d0
push str.202.61.85.121
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x1018], eax
test eax, eax
je 0x402324
cmp dword [esi + 0x14], 8
jb 0x402166
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push esi
push 0x44dafc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x40231c
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402306
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4022ff
cmp dword [edi + 0x14], 8
jb 0x4021b9
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0x10cc]
push edi
call fcn.00404020
mov eax, dword [ebp - 0x10cc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10d0], eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
je 0x40224f
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40224f
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x10cc]
call fcn.004034a0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
jne 0x402216
lea ecx, [ebp - 0x10c8]
call fcn.00403ee0
test eax, eax
jne 0x402287
mov eax, dword [ebp - 0x10cc]
lea ecx, [ebp - 0x10cc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401fa0
mov eax, dword [ebp - 0x10cc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10d0], eax
lea ecx, [ebp - 0x10c8]
call fcn.00403140
mov eax, dword [ebp - 0x10cc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x10d0], eax
lea eax, [ebp - 0x1064]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041b96a
jmp 0x402316
mov edx, str.Failed_to_receive_response.
jmp 0x40230b
mov edx, str.Failed_to_send_request.
call fcn.00404910
push eax
call fcn.00404bf0
add esp, 4
push esi
call ebx
push dword [ebp - 0x1018]
call ebx
push dword [ebp - 0x101c]
call ebx
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.00419edb
mov esp, ebp
pop ebp
ret