Function at 0x401254
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4051c8
push 0x404650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x485c
call fcn.00404620
push ebx
push esi
push edi
xor ebx, ebx
mov byte [0x4076c4], bl
mov eax, dword [ebp + 8]
mov byte [eax], bl
mov esi, 0x4077cc
push esi
push 0x4075bc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x400
push edi
lea eax, [ebp - 0x420]
push eax
push str.InstallerXmlURL
call fcn.004032c2
add esp, 0xc
test eax, eax
jne 0x4012d6
push str.http:__java.sun.com_update_1.5.0_1.5.0_10_b03.xml
push 0x4060f0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push str.jupdate
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4014b7
push 0x3c
push ebx
lea eax, [ebp - 0x868]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x868], 0x3c
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], edi
mov word [ebp - 0x850], bx
lea eax, [ebp - 0x2068]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x838], edi
lea eax, [ebp - 0xc68]
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], edi
lea eax, [ebp - 0x868]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
push esi
push esi
push dword [ebp - 0x850]
push dword [ebp - 0x858]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x4014b7
cmp dword [ebp - 0x838], ebx
je 0x4013be
push dword [ebp - 0x83c]
jmp 0x4013c3
push 0x4060e4
lea eax, [ebp - 0x1c68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x830], ebx
je 0x4013eb
push dword [ebp - 0x834]
lea eax, [ebp - 0x1c68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push esi
push str.HTTP_1.1
lea eax, [ebp - 0x1c68]
push eax
push 0x4060d4
push dword [ebp - 0x428]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, ebx
je 0x4014b7
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4014b7
mov dword [ebp - 0x206c], ebx
mov dword [ebp - 0x42c], 4
push ebx
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x206c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x206c], 0xc8
jne 0x4014b7
mov eax, 0x2800
mov dword [ebp - 0x4870], eax
mov dword [ebp - 0x4874], ebx
lea ecx, [ebp - 0x4874]
push ecx
push eax
lea eax, [ebp - 0x486c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4014ba
cmp dword [ebp - 0x4874], ebx
jbe 0x4014ba
push dword [ebp + 8]
lea eax, [ebp - 0x486c]
push eax
call fcn.004010ed
pop ecx
pop ecx
mov dword [ebp - 0x1c], 1
jmp 0x4014ba
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.004014d7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret