Function at 0x40686c
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 0x409340
push 0x4080b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x10a8
call fcn.004080c0
push ebx
push esi
push edi
push 1
pop esi
mov dword [ebp - 0x1c], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x407359
push dword [ebp + 8]
call fcn.00406771
pop ecx
test eax, eax
je 0x407359
cmp dword [0x40de30], 0
jne 0x40692a
push 0x14
push 0x40de18
push 0x14
push 0x40de04
call fcn.004065a0
push 0x20
push 0x40dde4
call fcn.00404509
lea eax, [ebp - 0xa1c]
push eax
call fcn.00405403
add esp, 0x1c
test eax, eax
je 0x406914
push 0x1e
lea eax, [ebp - 0xa1c]
push eax
push 0x40ddc4
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x406924
push 0x40d194
push 0x40ddc4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x40de30], esi
push 0x40de38
lea eax, [ebp - 0xd44]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push str.__xml_version_1.0__encoding_UTF_8_____request_
lea eax, [ebp - 0x81c]
push eax
call esi
push 0x40d1cc
push str.sc_xml_ver
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc44], eax
push 0x40d1dc
push dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
call ebx
mov esi, eax
push str.suninstallstat
push 0x40d1f0
lea eax, [ebp - 0xd5c]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
call edi
add esp, 0x14
test esi, esi
je 0x4069c4
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [ebp - 0xc44], eax
inc esi
push esi
push 0x40d1f4
lea eax, [ebp - 0xd5c]
push eax
call edi
add esp, 0xc
push str.suninstallstatdev
lea eax, [ebp - 0xd5c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
call esi
test eax, eax
jne 0x4069df
and dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd5c]
push eax
push str.reportsuiteid
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push 0x40dde4
push str.visitorid
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push 0x14
lea eax, [ebp - 0xd5c]
push eax
push str.PingTest
call fcn.0040639b
add esp, 0x24
test eax, eax
jne 0x406a2c
cmp dword [ebp - 0x1c], eax
jne 0x406a45
push 0x40dde4
push str.prop21
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push 0x40d23c
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x406aae
push 0x40d248
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.https:__sjremetrics.java.com
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x406a8e
push 0xb3e9fd
push 0x40d288
lea eax, [ebp - 0xa1c]
push eax
call edi
add esp, 0xc
jmp 0x406aa0
push str.nonprodpasswd
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xa1c]
push eax
push 0x40d29c
jmp 0x406ab8
push str.nonhttpspasswd
push 0x40d2b4
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push dword [ebp + 0x10]
push str.pagename
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push dword [ebp + 0x18]
push str.evar2
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0x18
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jne 0x406b05
push 0x40ddc4
push 0x40d2d0
jmp 0x406b0d
push dword [ebp + 0x1c]
push str.evar3
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push str.i586
push str.evar4
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push 0x40de18
push str.evar5
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push 0x40de04
push str.evar6
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0x24
cmp dword [ebp + 0xc], ebx
jne 0x406bb8
mov dword [ebp - 0xd60], 0x14
push 0x40d300
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xd60]
push eax
lea eax, [ebp - 0xc40]
push eax
push 0x40d304
push ebx
call fcn.00404994
lea eax, [ebp - 0xc40]
push eax
push 0x40d30c
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0x1c
jmp 0x406bcf
push dword [ebp + 0xc]
push str.evar7
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push dword [ebp + 0x14]
push str.evar8
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push 0x40d324
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x406cfb
push str.event6_event7
push 0x40d338
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push 0x40de3c
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x200
lea eax, [ebp - 0xc28]
push eax
push str.InstallStatus
call fcn.0040639b
push ebx
call fcn.0040646a
push ebx
push str.VisitorId
push ebx
call fcn.00404ce1
push ebx
push str.Method
push ebx
call fcn.00404ce1
add esp, 0x28
push str.decline
lea eax, [ebp - 0xc28]
push eax
call esi
test eax, eax
jne 0x406c74
push 1
pop eax
jmp 0x40735b
push 0x40d36c
lea eax, [ebp - 0xc28]
push eax
call esi
test eax, eax
jne 0x406c9f
cmp dword [ebp + 0x24], 0x643
je 0x406c98
cmp dword [ebp + 0x24], 0x642
jne 0x406c9f
mov dword [ebp + 0x24], 0xffffff80
push dword [ebp + 0x24]
push 0x40d374
lea eax, [ebp - 0xd44]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x406cea
push str.exists
lea eax, [ebp - 0xc28]
push eax
call esi
test eax, eax
je 0x406cea
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0xd44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xd44]
push eax
push 0x40d384
jmp 0x406e63
push 0x40d390
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x406d50
push str.event5
push 0x40d39c
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
push dword [ebp + 0x24]
push str._jre_d
lea eax, [ebp - 0xd44]
push eax
call edi
lea eax, [ebp - 0xd44]
push eax
push str.products
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0x24
jmp 0x406e72
push 0x40d3b8
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x406d6d
push str.event4
push 0x40d3c4
jmp 0x406e63
push 0x40d3cc
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x406d8a
push str.event1
push 0x40d3d8
jmp 0x406e63
push 0x40d3e0
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x406e72
push str.event2
push str.events
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
cmp dword [ebp + 0x24], ebx
jne 0x406dc2
push ebx
push 0x40d3f4
jmp 0x406dca
push dword [ebp + 0x24]
push 0x40d3f8
lea eax, [ebp - 0xa1c]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xa1c]
push eax
push str.evar9
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
cmp dword [ebp + 0x20], ebx
jne 0x406dfe
push ebx
push 0x40d404
jmp 0x406e06
push dword [ebp + 0x20]
push 0x40d408
lea eax, [ebp - 0xa1c]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xa1c]
push eax
push str.evar10
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
mov dword [ebp - 0xd64], ebx
lea eax, [ebp - 0xd64]
push eax
push str.NotifyInstall
push ebx
call fcn.004049fc
add esp, 0x18
cmp dword [ebp - 0xd64], ebx
jne 0x406e59
push 0x40d424
push 0x40d428
jmp 0x406e63
push 0x40d430
push str.evar11
lea eax, [ebp - 0x81c]
push eax
call fcn.00406828
add esp, 0xc
push str.__request_
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xd48], ebx
mov dword [ebp - 0xc2c], ebx
mov dword [ebp - 0xa28], ebx
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 - 0xa20], eax
cmp eax, ebx
je 0x407309
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0xea8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xea8], 0x3c
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0xe98], eax
mov eax, 0x100
mov dword [ebp - 0xe94], eax
xor edi, edi
mov word [ebp - 0xe90], di
lea ecx, [ebp - 0x10a8]
mov dword [ebp - 0xe7c], ecx
mov dword [ebp - 0xe78], eax
lea ecx, [ebp - 0xfa8]
mov dword [ebp - 0xe74], ecx
mov dword [ebp - 0xe70], eax
mov esi, dword [ebp - 0xc44]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
and byte [ebp + esi - 0xc28], 0
lea eax, [ebp - 0xea8]
push eax
push edi
push esi
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push edi
push edi
push 3
push 0x40de40
push 0x40de44
push dword [ebp - 0xe90]
push dword [ebp - 0xe98]
push dword [ebp - 0xa20]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0xd48], eax
cmp eax, edi
je 0x407309
xor esi, esi
cmp dword [ebp - 0xe78], esi
je 0x406f95
push dword [ebp - 0xe7c]
jmp 0x406f9a
push 0x40d450
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0xe70], esi
je 0x406fc2
push dword [ebp - 0xe74]
lea eax, [ebp - 0xc28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.https:__
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
test eax, eax
push esi
je 0x406ff5
push 0x4c00000
push esi
push 0x40de48
push 0x40d460
lea eax, [ebp - 0xc28]
push eax
push 0x40d46c
jmp 0x407011
push 0x4400000
push esi
push 0x40de4c
push str.HTTP_1.1
lea eax, [ebp - 0xc28]
push eax
push str.POST
push dword [ebp - 0xd48]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0xc2c], eax
cmp eax, esi
je 0x407309
push 1
pop edi
mov dword [ebp - 0xd6c], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x81c]
push eax
push esi
push esi
push dword [ebp - 0xc2c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4070c2
cmp dword [ebp - 0xd6c], esi
je 0x407309
call ebx
mov dword [ebp - 0x10b8], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x4070b7
sub ecx, 5
je 0x4070b7
sub ecx, 0x16
je 0x4070b7
mov dword [ebp - 0xd6c], esi
push esi
push 7
push eax
push dword [ebp - 0xc2c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40703c
mov dword [ebp - 0xd6c], edi
jmp 0x40703c
mov dword [ebp - 0xd6c], esi
jmp 0x40703c
cmp dword [ebp - 0xd6c], esi
je 0x407309
call ebx
mov dword [ebp - 0x10b4], eax
and dword [ebp - 0x10b0], 0
mov dword [ebp - 0xd68], 4
push 0
lea eax, [ebp - 0xd68]
push eax
lea eax, [ebp - 0x10b0]
push eax
mov edi, 0x20000013
push edi
push dword [ebp - 0xc2c]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call esi
test eax, eax
jne 0x407117
call ebx
mov dword [ebp - 0x10b4], eax
mov dword [ebp - 0xd6c], 1
mov ebx, dword [ebp - 0xc2c]
cmp dword [ebp - 0x10b0], 0x197
jne 0x4071a4
cmp dword [ebp - 0xd6c], 0
je 0x4071a4
push 0
push 7
push dword [ebp - 0x10b4]
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x407164
and dword [ebp - 0xd6c], 0
jmp 0x407127
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0xd68], 4
push 0
lea eax, [ebp - 0xd68]
push eax
lea eax, [ebp - 0x10b0]
push eax
push edi
push ebx
call esi
jmp 0x407127
cmp dword [ebp - 0x10b0], 0xc8
jne 0x4071d4
mov dword [ebp - 0xa28], 1
lea eax, [ebp - 0x10ac]
push eax
push 0x200
lea eax, [ebp - 0xc28]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x4071e0
mov ecx, 0x40ddc4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4071ed
lea eax, [ebp - 0xc40]
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push eax
push 0x40dde4
push dword [ebp - 0x10b0]
push str.InstallStatus:ret_d_visid_s_method_s_state_s_ver_s__s
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0xd44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40724a
push str._ICstatus
lea eax, [ebp - 0xa1c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
lea eax, [ebp - 0xd44]
push eax
lea eax, [ebp - 0xa1c]
push eax
call esi
cmp dword [ebp - 0x10ac], 0
je 0x407282
push 0x40d4d0
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x10ac]
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0xa1c]
push eax
call fcn.00407421
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x407309
push 0x40d4d4
lea eax, [ebp - 0x81c]
push eax
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
call ebx
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0xa24], esi
test esi, esi
je 0x4072fc
mov edi, 0x40d4dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
mov dword [ebp - 0xa24], esi
push str.prop20
push esi
call ebx
pop ecx
pop ecx
mov dword [ebp - 0x10bc], eax
sub eax, esi
dec eax
dec eax
mov dword [ebp - 0x10c0], eax
je 0x4072fc
push eax
push str.XXXXXXXXXXXXXXXXXX
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
call fcn.00407421
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0040731a
mov eax, dword [ebp - 0xa28]
jmp 0x40735b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret