Function at 0x401a50
Capabilities:
Check internet connectivity via wininet
Delete file
Get common file path
Parse url

Disassembly:
mov eax, 0x40c2dc
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x289c
call fcn.0040c070
push ebx
push esi
push edi
lea ecx, [ebp - 0x6c]
call fcn.00401e6e
push 0x411de4
mov dword [ebp - 0x6c], 0x40d44c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
call fcn.00402812
mov edi, eax
cmp edi, ebx
jge 0x401e37
push 0x4101e0
push ebx
call fcn.00408ef5
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov edi, 0x80004005
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x401de9
mov esi, 0x400
lea eax, [ebp - 0x8a8]
push esi
push eax
lea eax, [ebp - 0x18a8]
push eax
call fcn.0040915b
add esp, 0xc
test eax, eax
je 0x401e37
lea eax, [ebp - 0x20a8]
push eax
lea eax, [ebp - 0x1ca8]
push eax
lea eax, [ebp - 0x18a8]
push eax
lea eax, [ebp - 0x8a8]
push eax
call fcn.0040a7f1
add esp, 0x10
test eax, eax
je 0x401e37
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x10], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x8a8]
push str.jupdate
push eax
call ebx
lea eax, [ebp - 0x18a8]
push eax
lea eax, [ebp - 0x8a8]
push eax
call ebx
lea eax, [ebp - 0x8a8]
push str..xml
push eax
call ebx
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.0040ad0e
pop ecx
test eax, eax
pop ecx
jne 0x401b91
lea eax, [ebp - 0x18a8]
push eax
lea eax, [ebp - 0x18a8]
push eax
lea eax, [ebp - 0x4a8]
push str.http:__java.sun.com_update__s_map__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401f63
mov edi, eax
test edi, edi
jl 0x401bd7
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x4a8]
push edx
lea edx, [ebp - 0x1ca8]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x20a8]
push edx
lea edx, [ebp - 0x8a8]
push edx
push eax
call dword [ecx + 0x14]
mov edi, eax
jmp 0x401be3
cmp edi, 0x80070202
je 0x401be3
and dword [ebp - 0x10], 0
test edi, edi
jl 0x401c10
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401f63
mov edi, eax
test edi, edi
jge 0x401c65
cmp edi, 0x80070202
je 0x401c10
and dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x401e37
cmp dword [ebp - 0x10], 0
je 0x401e37
mov eax, dword [0x411dd8]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x10a8]
push esi
push ecx
push 0x71
push eax
call ebx
mov eax, dword [0x411dd8]
lea ecx, [ebp - 0x14a8]
push esi
push ecx
push 0x87
push eax
call ebx
lea eax, [ebp - 0x10a8]
push 0x40
push eax
lea eax, [ebp - 0x14a8]
jmp 0x401e2e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28a8]
push edx
lea edx, [ebp - 0x24a8]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x4a8]
push edx
lea edx, [ebp - 0x8a8]
push edx
push eax
call dword [ecx + 0x10]
mov edi, eax
test edi, edi
jl 0x401c10
lea eax, [ebp - 0x8a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14a8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4a8]
push 0
push eax
mov dword [ebp - 0xa8], 0x3c
mov dword [ebp - 0x78], esi
call edi
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x401d30
xor eax, eax
lea ecx, [ebp - 0xca8]
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0x14a8]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
lea eax, [ebp - 0x14a8]
push 1
push eax
call fcn.00401a19
push eax
lea eax, [ebp - 0xca8]
push eax
lea eax, [ebp - 0x10a8]
push str._s__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
jmp 0x401d5b
lea eax, [ebp - 0x4a8]
push 1
push eax
call fcn.00401a19
push eax
lea eax, [ebp - 0x1ca8]
push eax
lea eax, [ebp - 0x10a8]
push str.jupdate_s__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0xca8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0xca8]
push eax
call ebx
lea eax, [ebp - 0x4a8]
push eax
call edi
cmp eax, 4
jle 0x401db2
lea eax, [ebp - 0x4a8]
push 0x410248
push eax
call edi
lea ecx, [ebp - 0x4a8]
sub ecx, 4
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401db2
push 0x410250
jmp 0x401db7
push str..exe
lea eax, [ebp - 0xca8]
push eax
call ebx
lea eax, [ebp - 0x24a8]
push eax
lea eax, [ebp - 0x28a8]
push eax
lea eax, [ebp - 0xca8]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401f7c
mov edi, eax
jmp 0x401e37
cmp esi, ebx
je 0x401e37
mov eax, dword [0x411dd8]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
mov esi, 0x400
lea ecx, [ebp - 0x10a8]
push esi
push ecx
push 0x71
push eax
call ebx
mov eax, dword [0x411dd8]
lea ecx, [ebp - 0x14a8]
push esi
push ecx
push 0x8b
push eax
call ebx
lea eax, [ebp - 0x10a8]
push 0x40
push eax
lea eax, [ebp - 0x14a8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x410260
push 0
call fcn.00408ef5
pop ecx
pop ecx
call fcn.004096d9
call fcn.0040970a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401efc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8