Function at 0x40501c
Capabilities:
Accept command line arguments
Check os version
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e24]
mov eax, 0x1e24
call fcn.004429d0
push 0xffffffffffffffff
push 0x456a74
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x47362c]
xor eax, ebp
mov dword [ebp + 0x1e20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x45e50e
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
lea eax, [ebp - 0x28]
push eax
push str.kernel32
push 2
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x4050a0
push str.SetDefaultDllDirectories
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4050a0
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [0x476180]
xor edi, edi
mov dword [0x4774bc], ebx
inc edi
cmp esi, dword [0x476184]
jae 0x4050d3
mov eax, dword [esi]
cmp eax, ebx
je 0x4050ce
push edi
call dword [eax + 0x20]
add esi, 4
jmp 0x4050bc
lea esi, [ebp - 0x3c]
call fcn.00410ddf
mov esi, eax
mov ecx, dword [esi + 4]
push ebx
mov edx, 0x474dac
call fcn.004116d3
cmp eax, edi
jne 0x405120
mov ecx, dword [esi + 4]
push ebx
mov edx, 0x474da0
call fcn.004116d3
shr eax, 4
test al, 1
jne 0x405120
mov ecx, dword [esi + 4]
push ebx
mov edx, 0x474d94
call fcn.004116d3
cmp eax, 0x64
sete al
cmp al, bl
jne 0x405120
mov al, 1
jmp 0x405122
xor al, al
cmp al, bl
lea ecx, [ebp - 0x3c]
sete byte [ebp - 0x21]
call fcn.00410e39
cmp byte [ebp - 0x21], bl
je 0x405147
mov esi, str.AutoUpdate_disabled._n
call fcn.0040cf0c
push 0xfffffffffffffffc
pop eax
jmp 0x4054ef
mov esi, 0x9c
push esi
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00437840
add esp, 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
cmp eax, ebx
jne 0x40517e
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0x94
call esi
test eax, eax
je 0x40519d
cmp dword [ebp + 0x20], 2
jne 0x405197
cmp dword [ebp + 0x14], 6
jae 0x4051eb
cmp dword [ebp + 0x14], 4
jb 0x405197
call fcn.0040cf5b
jmp 0x405199
mov eax, edi
cmp eax, ebx
jne 0x4051eb
cmp dword [0x4774c0], 3
jg 0x4051e4
push str.jusched_Error:___XP_and_not_an_admin_user
lea ecx, [ebp + 0xac]
call fcn.00405ba6
push str.WinMain
push 0x435
push str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u102_6817.nc_install_src_windows_au_jusched_UpdateScheduler.cpp
push 3
mov edx, eax
mov ecx, 0x4774c0
mov byte [ebp - 4], 1
call fcn.00412978
push ebx
push edi
lea ecx, [ebp + 0xac]
call fcn.00405db8
push 0xfffffffffffffffb
jmp 0x405141
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea edi, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
call fcn.00404ba1
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x405256
push str._Running_jusched__n
call fcn.004154f0
mov esi, dword [ebp - 0x30]
pop ecx
mov dword [ebp - 0x18], ebx
mov edi, 0x493e0
call fcn.0040cb01
cmp al, bl
je 0x405232
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405250
push str.Shutdown_signal_received
call fcn.004154f0
pop ecx
mov dword [ebp - 0x18], 0x64
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 0x7ff
lea eax, [ebp + 0x921]
push ebx
push eax
mov byte [ebp + 0x920], bl
call fcn.00437840
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jne 0x405284
lea esi, [ebp + 0x920]
call fcn.00404ce5
mov dword [ebp - 0x14], eax
cmp dword [0x4778ec], ebx
jne 0x4052a4
push ebx
call fcn.00437ecd
push eax
call fcn.0043a843
pop ecx
pop ecx
mov dword [0x4778ec], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xc4], ebx
mov byte [ebp + 0xc0], bl
cmp dword [ebp - 0x14], ebx
jne 0x4052ca
call fcn.00404d38
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4052fb
mov esi, str.jusched_ERROR:_error_detected_during_startup_checks
call fcn.0040cf0c
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.00404b73
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
lea esi, [ebp + 0xac]
mov dword [ebp + 0xb0], eax
call fcn.004126f4
jmp 0x4054e1
push 0x16
pop ecx
push 0x7ff
lea eax, [ebp + 0x121]
push ebx
mov esi, 0x45e2f0
lea edi, [ebp + 0xc8]
push eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + 0x120], bl
call fcn.00437840
lea eax, [ebp]
push eax
call fcn.00410ae5
add esp, 0x10
test eax, eax
jns 0x4053d2
lea eax, [ebp - 0x18]
push eax
push ebx
lea edx, [ebp + 0x120]
mov ecx, str.LocalFileName
mov dword [ebp - 0x18], 0x800
call fcn.0040c7c5
pop ecx
pop ecx
cmp eax, ebx
je 0x40535e
cmp dword [ebp - 0x18], ebx
jne 0x4053d2
xor edi, edi
call fcn.0040c711
cmp eax, ebx
je 0x4053dc
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicy
lea eax, [ebp + 0xac]
mov dword [ebp + 0xac], MsiConfigureFeatureFromDescriptorA
mov dword [ebp + 0xc4], ebx
mov byte [ebp + 0xc0], bl
call fcn.004126bd
test eax, eax
jne 0x4053dc
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.VersionXmlURL
push dword [ebp + 0xb0]
call esi
push str.LastUpdateBeginTime
push dword [ebp + 0xb0]
call esi
push str.LastUpdateFinishTime
push dword [ebp + 0xb0]
call esi
lea esi, [ebp + 0xac]
call fcn.004126f4
jmp 0x4053dc
mov dword [ebp + 0xe0], 1
cmp dword [ebp + 0xd4], ebx
je 0x40540b
lea edi, [ebp + 0xc8]
call fcn.00403dea
cmp eax, ebx
jne 0x40540b
push str.Error_Querying_Frequency_Schedule_n
call fcn.004154f0
pop ecx
mov dword [ebp + 0xd4], ebx
mov dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp + 0xc8]
call fcn.004039ff
lea esi, [ebp + 0xc8]
call fcn.00403e3a
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0xd4], ebx
je 0x4054c5
cmp dword [ebp + 0xd8], ebx
je 0x405514
cmp dword [ebp + 0xe4], ebx
je 0x40544b
push str.Time_for_a_Java_Update__Critical__check._n
jmp 0x405450
push str.Time_for_a_Java_Update_check._n
call fcn.004154f0
pop ecx
push dword [ebp + 0xe4]
lea eax, [ebp + 0xe0]
push dword [ebp + 0xd4]
mov dword [ebp + 0xd8], ebx
push eax
push dword [ebp + 0xf4]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xf0]
mov dword [ebp + 0xe0], ebx
push dword [ebp + 0xec]
push dword [ebp + 0xe8]
push eax
push 1
lea eax, [ebp + 0x920]
push eax
lea ecx, [ebp + 0x118]
call fcn.004049ad
add esp, 0x28
cmp dword [ebp + 0xd4], ebx
jne 0x405560
mov esi, str.jusched_main:_StartUpdateChecker_set_bRun_to_false__user_cancel_or_shutdown_event
call fcn.0040cf0c
mov dword [ebp - 0x14], 0x64
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.00404b73
pop ecx
pop ecx
cmp dword [ebp - 0x20], ebx
je 0x4054e1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040367d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e20]
xor ecx, ebp
call fcn.004363ed
add ebp, 0x1e24
leave
ret 0x10
cmp dword [ebp + 0xe0], ebx
je 0x40556d
cmp dword [ebp - 0x1c], ebx
jne 0x40556d
mov esi, str.There_is_a_pending_Java_Update__and_waittime0_._n
call fcn.0040cf0c
push dword [ebp + 0xe4]
lea eax, [ebp + 0xe0]
push dword [ebp + 0xd4]
push eax
push dword [ebp + 0xf4]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xf0]
push dword [ebp + 0xec]
push dword [ebp + 0xe8]
push eax
push ebx
jmp 0x405493
lea ecx, [ebp + 0xc8]
call fcn.004039ff
jmp 0x405577
mov esi, str.Top_of_update_check_loop__and_not_time_for_any_update_checks._n
call fcn.0040cf0c
mov esi, 0xff
push esi
lea eax, [ebp + 0x1d21]
push ebx
push eax
mov byte [ebp + 0x1d20], bl
call fcn.00437840
push esi
lea eax, [ebp + 0x1921]
push ebx
push eax
mov byte [ebp + 0x1920], bl
call fcn.00437840
push esi
lea eax, [ebp + 0x1b21]
push ebx
push eax
mov byte [ebp + 0x1b20], bl
call fcn.00437840
push esi
lea eax, [ebp + 0x1c21]
push ebx
push eax
mov byte [ebp + 0x1c20], bl
call fcn.00437840
mov esi, dword [ebp - 0x1c]
add esp, 0x30
cmp esi, ebx
jne 0x40573f
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov esi, str.__Critical_
cmp dword [ebp + 0xe4], ebx
jne 0x4055fe
mov esi, 0x45e50e
lea eax, [ebp + 0xf0]
push eax
call fcn.00437da0
push eax
call fcn.004378c5
push eax
push esi
lea eax, [ebp + 0x1d20]
push str.JavaUpdate_s_NextSchedTime_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xe4]
lea eax, [ebp - 0x60]
push dword [ebp + 0xf4]
lea ecx, [ebp - 0x38]
push dword [ebp + 0xf0]
push dword [ebp + 0xec]
push dword [ebp + 0xe8]
push eax
call fcn.00403f67
mov eax, dword [ebp + 0xf0]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xf4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xe8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xec]
add esp, 0x30
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], edi
mov esi, str.JavaUpdate__Critical_
cmp dword [ebp + 0xe4], ebx
jne 0x40568d
mov esi, str.JavaUpdate
lea eax, [ebp - 0x54]
push eax
call fcn.00437da0
push eax
call fcn.004378c5
push eax
push esi
lea eax, [ebp + 0x1b20]
push str._slastSchedTime_s
push eax
call fcn.00436761
add esp, 0x18
mov dword [ebp - 0x40], str.JavaUpdate__Critical_
cmp dword [ebp + 0xe4], ebx
jne 0x405736
mov dword [ebp - 0x40], str.JavaUpdate
mov dword [ebp - 0x44], str.JavaUpdate
lea eax, [ebp - 0x4c]
push eax
call fcn.00437da0
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
mov eax, edi
div ecx
mov dword [ebp - 0x70], edi
fild dword [ebp - 0x70]
mov ecx, eax
test edi, edi
jns 0x4056f7
fadd dword [0x4646f0]
fdiv qword [0x4646e8]
xor edx, edx
mov edi, 0xe10
div edi
push ecx
fdiv qword [0x4646e0]
fstp qword [esp]
push eax
push ecx
push dword [ebp - 0x40]
push esi
call fcn.004378c5
pop ecx
push eax
push dword [ebp - 0x44]
lea eax, [ebp + 0x1c20]
push str._snextSchedTime_s_ssleeptime__sec_u__hours_u__days_2.2f__n
push eax
call fcn.00436761
add esp, 0x24
jmp 0x405755
mov dword [ebp - 0x44], str.JavaUpdate__Critical_
jmp 0x4056cf
lea eax, [ebp + 0x1d20]
push str.JavaUpdate_waittime_still_set._n
push eax
call fcn.00436761
pop ecx
pop ecx
mov dword [ebp - 0x18], esi
push 0x7ff
lea eax, [ebp + 0x1121]
push ebx
push eax
mov byte [ebp + 0x1120], bl
call fcn.00437840
add esp, 0xc
mov esi, str.JavaUpdate__Critical_
cmp dword [ebp + 0xe4], ebx
jne 0x405782
mov esi, str.JavaUpdate
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 0x3c
pop ecx
xor edx, edx
push 0x3c
pop edi
push esi
div ecx
mov ecx, edx
xor edx, edx
div edi
push ecx
push edx
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 0x1c20]
push eax
lea eax, [ebp + 0x1b20]
push eax
lea eax, [ebp + 0x1920]
push eax
lea eax, [ebp + 0x1d20]
push eax
lea eax, [ebp + 0x1120]
push str._s_s_s_sactual_sleep_time_u_msecs___01u:_02u:_02u__for__s_n
push eax
call fcn.00436761
lea eax, [ebp + 0x1120]
push eax
call fcn.004154f0
add esp, 0x30
call fcn.0040cb01
cmp al, bl
je 0x405803
cmp dword [ebp - 0x18], 0xa8c0
jbe 0x405803
push str.jusched.exe_exit_because_it_is_an_OEMUpdate_and_the_sleeptime_is_greater_than_12_hours
call fcn.004154f0
pop ecx
jmp 0x4054c5
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call fcn.00437ecd
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
je 0x405a42
xor edi, edi
inc edi
cmp eax, edi
je 0x405933
cmp eax, 0x7f
jbe 0x4058de
cmp eax, 0x81
jbe 0x405a42
cmp eax, 0x102
jne 0x4058de
push 0x7ff
lea eax, [ebp + 0x1121]
push ebx
push eax
mov byte [ebp + 0x1120], bl
call fcn.00437840
push 0xffffffffffffffff
push str.Timeout_occured.
lea eax, [ebp + 0x1120]
push 0x800
push eax
call fcn.00437e18
add esp, 0x1c
lea esi, [ebp + 0x1120]
call fcn.0040cf0c
mov eax, esi
cmp dword [ebp - 0x1c], ebx
jne 0x4058bc
cmp dword [ebp + 0xe4], ebx
je 0x4058a9
push str.Run_Java_update__Critical__now._n
jmp 0x4058ae
push str.Run_Java_update_now._n
push eax
call fcn.00437f30
mov dword [ebp + 0xd8], edi
jmp 0x4058ca
push str.Java_update_had_a_waittime.__Clearing_waittime._n
push eax
call fcn.00437f30
mov dword [ebp - 0x1c], ebx
pop ecx
pop ecx
lea eax, [ebp + 0x1120]
push eax
call fcn.004154f0
pop ecx
jmp 0x405424
push 0xff
lea eax, [ebp + 0x1a21]
push ebx
push eax
mov dword [ebp + 0xd4], ebx
mov dword [ebp - 0x14], 0xffffff9d
mov byte [ebp + 0x1a20], bl
call fcn.00437840
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x1a20]
push str.Error_in_WaitForSingleObject:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1a20]
push eax
call fcn.004154f0
add esp, 0x10
jmp 0x405424
push str.Registry_change_detected._n
call fcn.004154f0
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x16
pop ecx
lea eax, [ebp - 0x20]
push ebx
mov esi, 0x45e2f0
lea edi, [ebp + 0x54]
push eax
mov dword [ebp - 0x20], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0040c684
pop ecx
pop ecx
cmp eax, ebx
je 0x405a25
lea edi, [ebp + 0x54]
call fcn.00403dea
cmp eax, ebx
je 0x405a25
mov eax, dword [ebp + 0x54]
cmp eax, dword [ebp + 0xc8]
jne 0x4059d3
mov ecx, dword [ebp + 0x58]
cmp ecx, dword [ebp + 0xcc]
jne 0x4059d3
cmp dword [ebp + 0xdc], ebx
je 0x4059ad
mov ecx, dword [ebp + 0x5c]
cmp ecx, dword [ebp + 0xd0]
jne 0x4059d3
cmp dword [ebp - 0x1c], ebx
jbe 0x4059ff
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.00437ecd
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x68]
pop ecx
imul eax, eax, 0x3e8
add dword [ebp - 0x1c], eax
jmp 0x4059ff
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0xcc], eax
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0xc8]
mov dword [ebp + 0xd0], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xe0], ebx
call fcn.004039ff
push dword [ebp - 0x20]
call fcn.00404b24
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x405424
mov dword [ebp + 0xd4], ebx
mov dword [ebp - 0x14], 0xfffffffe
jmp 0x405424
push str.jusched_ERROR:_Opening_JavaUpdate_key_or_Querying_Frequency_Schedule_in_while_loop_n
call fcn.004154f0
pop ecx
mov dword [ebp + 0xd4], ebx
mov dword [ebp - 0x14], 0xfffffffd
jmp 0x405424
push str.Received_shutdown_signal_n
mov dword [ebp + 0xd4], ebx
call fcn.004154f0
pop ecx
mov dword [ebp - 0x14], 0x64
jmp 0x405424