Function at 0x4011d0
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 0x40e318
push 0x404054
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x485c
call fcn.00404260
push ebx
push esi
push edi
xor ebx, ebx
mov byte [0x4121c8], bl
mov eax, dword [ebp + 8]
mov byte [eax], bl
mov esi, 0x40e314
push esi
push 0x4122c8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x400
push edi
lea eax, [ebp - 0x474]
push eax
push str.InstallerXmlURL
call fcn.00402edc
add esp, 0xc
test eax, eax
jne 0x401252
push str.http:__java.sun.com_update_1.6.0_1.6.0_04_b12.xml
push 0x40e2cc
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 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 - 0x24], eax
cmp eax, ebx
je 0x4013d1
push 0x3c
push ebx
lea eax, [ebp - 0x70]
push eax
call fcn.00403fa0
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x2074]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x58], bx
lea eax, [ebp - 0x874]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0xc74]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
push esi
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4013d1
lea eax, [ebp - 0x1c74]
cmp dword [ebp - 0x40], ebx
je 0x40130d
push dword [ebp - 0x44]
jmp 0x401312
push 0x40e2c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x38], ebx
je 0x40132e
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c74]
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 - 0x1c74]
push eax
push 0x40e2b0
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x4013d1
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4013d1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x30], 0xc8
jne 0x4013d1
mov eax, 0x2800
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x4874]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4013d4
cmp dword [ebp - 0x2c], ebx
jbe 0x4013d4
push dword [ebp + 8]
lea eax, [ebp - 0x4874]
push eax
call fcn.00401064
pop ecx
pop ecx
mov dword [ebp - 0x1c], 1
jmp 0x4013d4
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.004013f1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret