Function at 0x40822f
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x4976a0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x28
mov eax, 0x47157a
call fcn.004525c7
xor edi, edi
push 0x476f2c
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x20], 0x80ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x4082c9
cmp dword [0x49c100], 3
jg 0x4082c9
push str.Could_not_initialize_common_controls_
lea ecx, [ebp + 0x38]
call fcn.00402450
push str.WinMain
push 0x70
xor ebx, ebx
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_au_jucheck_UpdateChecker.cpp
inc ebx
push 3
mov edx, eax
mov ecx, 0x49c100
mov byte [ebp - 4], bl
call fcn.00421620
push edi
push ebx
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0
call fcn.0040320c
jmp 0x4082cc
xor ebx, ebx
inc ebx
mov eax, 0x49c01c
cmp eax, 0xffffffff
je 0x4082ea
mov dword [0x49c098], eax
mov esi, eax
cmp dword [esi], edi
je 0x4082ea
push ebx
call dword [esi + 0x20]
add esi, 0x24
jmp 0x4082dd
mov esi, dword [0x49b000]
cmp esi, dword [0x49b004]
jae 0x408307
mov eax, dword [esi]
cmp eax, edi
je 0x408302
push ebx
call dword [eax + 0x20]
add esi, 4
jmp 0x4082f0
cmp dword [0x49c100], ebx
jg 0x408366
lea eax, [ebp + 0x54]
push edi
push eax
call fcn.00423234
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x38]
push str.UpdateChecker.cpp_MOS_MODE
push eax
mov byte [ebp - 4], 2
call fcn.00408a07
add esp, 0xc
push str.WinMain
push 0x76
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_au_jucheck_UpdateChecker.cpp
push ebx
mov edx, eax
mov ecx, 0x49c100
mov byte [ebp - 4], 3
call fcn.00421620
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040320c
push edi
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0
call fcn.0040320c
mov esi, 0x47a150
lea edi, [ebp - 0x18]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x18]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.004081f2
mov edi, str.getconfig
mov esi, eax
pop ecx
test esi, esi
je 0x40871d
push str.UnregServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40876c
push str.RegServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40876c
push str.auto
call fcn.0044c4d0
push eax
push str.auto
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x4083f2
and dword [0x498d5c], eax
mov dword [str.jau_m], 0x47a174
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.004081f2
jmp 0x408385
push str.scheduled
call fcn.0044c4d0
push eax
push str.scheduled
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x408417
mov dword [0x49c040], ebx
jmp 0x4083e5
push str.pending
call fcn.0044c4d0
push eax
push str.pending
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x40843c
mov dword [0x49c044], ebx
jmp 0x4083e5
push str.critical
call fcn.0044c4d0
push eax
push str.critical
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x408461
mov dword [0x49c048], ebx
jmp 0x4083e5
push str.test
call fcn.0044c4d0
push eax
push str.test
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x408498
lea eax, [esi + 5]
push eax
push 0x49bdf8
mov dword [0x49c04c], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4083e5
push str.setconfig
call fcn.0044c4d0
push eax
push str.setconfig
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x408599
push str.setconfig
call fcn.0044c4d0
pop ecx
add eax, esi
push eax
lea ecx, [ebp + 0x38]
call fcn.00402450
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 5
call fcn.00416e43
pop ecx
mov dword [ebp - 4], 4
jmp 0x408585
lea ecx, [ebp + 0x38]
push 0
push ebx
mov byte [ebp - 4], 0
call fcn.0040320c
jmp 0x40876c
push edi
call fcn.0044c4d0
push eax
push edi
push esi
call fcn.0044c937
add esp, 0x10
test eax, eax
jne 0x4083e5
push edi
call fcn.0044c4d0
pop ecx
add eax, esi
push eax
lea ecx, [ebp + 0x54]
call fcn.00402450
mov byte [ebp - 4], 0xa
and dword [ebp - 0x1c], 0
cmp dword [ebp + 0x68], 0x10
mov eax, dword [ebp + 0x54]
jae 0x4085d8
lea eax, [ebp + 0x54]
lea ecx, [ebp - 0x1c]
push ecx
push 0x47a1cc
push eax
call fcn.0044c915
add esp, 0xc
cmp eax, ebx
je 0x408641
cmp dword [ebp - 0x1c], 0
jl 0x408641
cmp dword [0x49c100], 3
jg 0x40863c
lea eax, [ebp + 0x1c]
push str.getconfig_error___incorrect_version:
push eax
lea edi, [ebp + 0x54]
call fcn.00408a34
pop ecx
pop ecx
push str.WinMain
push 0xb5
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_au_jucheck_UpdateChecker.cpp
push 3
mov edx, eax
mov ecx, 0x49c100
mov byte [ebp - 4], 0x10
call fcn.00421620
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040320c
mov dword [ebp - 0x14], ebx
jmp 0x40867c
mov byte [ebp - 4], 0xb
push dword [ebp - 0x1c]
lea ebx, [ebp + 0x1c]
call fcn.004174e6
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x408659
mov eax, dword [eax]
push eax
push 0x47a1d0
call fcn.0044ce1e
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040320c
mov dword [ebp - 4], 0xa
xor ebx, ebx
inc ebx
lea ecx, [ebp + 0x54]
jmp 0x408588
xor eax, eax
inc eax
je 0x40876c
push str.SunJavaUpdateCheckerMutex
push ebx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
cmp ebx, edi
je 0x40879d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40879d
call fcn.0040f712
push dword [0x498d60]
push str.Method
push edi
call fcn.0040f152
add esp, 0xc
call fcn.0040819a
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x49c098]
xor edi, edi
cmp esi, edi
je 0x408843
cmp dword [esi], edi
je 0x408843
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x408791
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
mov dword [esi + 0x10], edi
call dword [esi + 0x20]
add esi, 0x24
jmp 0x40877c
mov dword [ebp - 0x14], 0x64
cmp ebx, edi
je 0x40876c
cmp dword [0x498d5c], edi
jne 0x4087b8
cmp dword [0x49c040], edi
je 0x408765
push dword [0x498d60]
push str.Method
push edi
call fcn.0040f152
add esp, 0xc
push str.SunJavaUpdateRecheckUpdateEvent
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, edi
je 0x408765
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408765
mov esi, dword [0x49b000]
cmp esi, dword [0x49b004]
jae 0x408860
mov eax, dword [esi]
cmp eax, edi
je 0x40885b
push edi
call dword [eax + 0x20]
add esi, 4
jmp 0x408849
mov eax, 0x49c06c
call fcn.00405e2b
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 + 0x70]
xor ecx, ebp
call fcn.0044a659
add ebp, 0x74
leave
ret 0x10