Function at 0x4015a0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
call sym._mcount
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.MyAgent_1.0
call sub.WINHTTP.dll_WinHttpOpen
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4015fb
mov eax, 0
jmp 0x40198f
lea eax, [ebp - 0x39]
mov ecx, eax
call sym.ext
mov eax, dword [ebp - 0x6c]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add ebx, eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x39]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
mov ecx, eax
call fcn.0042c700
sub esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, eax
call sym._cxx27__verbose_terminate_handlerEv
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpConnect
sub esp, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
mov ecx, eax
call fcn.0042cca0
lea eax, [ebp - 0x39]
mov ecx, eax
call sym.ata_1
cmp dword [ebp - 0x14], 0
jne 0x40169a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
lea eax, [ebp - 0x1d]
mov ecx, eax
call sym.ext
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [ebp + 8]
lea ecx, [eax + edx]
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x1d]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call fcn.0042c700
sub esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, eax
call sym._cxx27__verbose_terminate_handlerEv
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43105c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpOpenRequest
sub esp, 0x1c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
mov ecx, eax
call fcn.0042cca0
lea eax, [ebp - 0x1d]
mov ecx, eax
call sym.ata_1
cmp dword [ebp - 0x18], 0
jne 0x40175a
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpSendRequest
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4017d5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpReceiveResponse
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401828
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 4
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000005
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpQueryHeaders
sub esp, 0x18
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4018a5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4018ed
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, 0
jmp 0x40198f
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpReadData
sub esp, 0x10
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WINHTTP.dll_WinHttpCloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40198f
mov ebx, dword [ebp - 4]
leave
ret 8