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

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x4946a0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x28
mov eax, 0x46f3ef
call fcn.0045107c
xor edi, edi
push 0x474e64
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
lea eax, [ebp - 0x14]
push eax
push str.kernel32
push 2
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x4081f2
push str.SetDefaultDllDirectories
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4081f2
push 0x800
call eax
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 0x408258
cmp dword [0x4991c0], 3
jg 0x408258
push str.Could_not_initialize_common_controls_
lea ecx, [ebp + 0x38]
call fcn.00402559
push str.WinMain
push 0x57
push str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_au_jucheck_UpdateChecker.cpp
push 3
mov edx, eax
mov ecx, 0x4991c0
mov byte [ebp - 4], 1
call fcn.00423cf0
push edi
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0
call fcn.004031e0
mov eax, 0x4990dc
cmp eax, 0xffffffff
je 0x408277
mov dword [0x499158], eax
mov esi, eax
cmp dword [esi], edi
je 0x408277
push 1
call dword [esi + 0x20]
add esi, 0x24
jmp 0x408269
mov esi, dword [0x4980c0]
cmp esi, dword [0x4980c4]
jae 0x408295
mov eax, dword [esi]
cmp eax, edi
je 0x408290
push 1
call dword [eax + 0x20]
add esi, 4
jmp 0x40827d
mov esi, 0x47809c
lea edi, [ebp - 0x1c]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.0040bf76
mov ebx, str.setconfig
mov edi, str.getconfig
mov esi, eax
pop ecx
test esi, esi
je 0x40867c
push str.UnregServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40842f
push str.RegServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40842f
push str.auto
call fcn.0044ae10
push eax
push str.auto
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x408326
and dword [0x495d5c], eax
mov dword [str.jau_m], 0x4780c0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0040bf76
jmp 0x4082b9
push str.scheduled
call fcn.0044ae10
push eax
push str.scheduled
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x40834f
mov dword [0x499100], 1
jmp 0x408319
push str.pending
call fcn.0044ae10
push eax
push str.pending
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x408378
mov dword [0x499104], 1
jmp 0x408319
push str.critical
call fcn.0044ae10
push eax
push str.critical
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x4083a4
mov dword [0x499108], 1
jmp 0x408319
push str.test
call fcn.0044ae10
push eax
push str.test
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x4083df
lea eax, [esi + 5]
push eax
push 0x498eb8
mov dword [0x49910c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x408319
push ebx
call fcn.0044ae10
push eax
push ebx
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x4084f9
push ebx
call fcn.0044ae10
pop ecx
add eax, esi
push eax
lea ecx, [ebp + 0x38]
call fcn.00402559
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.004176a6
pop ecx
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x38]
push 0
push 1
mov byte [ebp - 4], 0
call fcn.004031e0
xor ebx, ebx
mov esi, dword [0x499158]
cmp esi, ebx
je 0x40877b
cmp dword [esi], ebx
je 0x40877b
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x408454
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
mov dword [esi + 0x10], ebx
call dword [esi + 0x20]
add esi, 0x24
jmp 0x40843f
push edi
call fcn.0044ae10
push eax
push edi
push esi
call fcn.0044b277
add esp, 0x10
test eax, eax
jne 0x408319
push edi
call fcn.0044ae10
pop ecx
add eax, esi
push eax
lea ecx, [ebp + 0x54]
call fcn.00402559
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0x54]
xor ebx, ebx
cmp dword [ebp + 0x68], 0x10
mov dword [ebp - 0x14], ebx
jae 0x408539
lea eax, [ebp + 0x54]
lea ecx, [ebp - 0x14]
push ecx
push 0x478118
push eax
call fcn.0044b255
xor esi, esi
inc esi
add esp, 0xc
cmp eax, esi
je 0x4085a9
cmp dword [ebp - 0x14], ebx
jl 0x4085a9
cmp dword [0x4991c0], 3
jg 0x40859e
lea eax, [ebp + 0x1c]
push str.getconfig_error___incorrect_version:
push eax
lea edi, [ebp + 0x54]
call fcn.0040896c
pop ecx
pop ecx
push str.WinMain
push 0x98
push str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_au_jucheck_UpdateChecker.cpp
push 3
mov edx, eax
mov ecx, 0x4991c0
mov byte [ebp - 4], 0xe
call fcn.00423cf0
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004031e0
mov dword [ebp - 0x18], esi
lea ecx, [ebp + 0x54]
jmp 0x408422
mov byte [ebp - 4], 9
push dword [ebp - 0x14]
lea ebx, [ebp + 0x1c]
call fcn.00417d49
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x4085c1
mov eax, dword [eax]
push eax
push 0x47811c
call fcn.0044b75e
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004031e0
mov dword [ebp - 4], 8
jmp 0x4085a1
xor eax, eax
inc eax
je 0x40842f
push str.SunJavaUpdateCheckerMutex
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, ebx
je 0x4086d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4086d4
call fcn.00411b89
push dword [0x495d60]
push str.Method
push ebx
call fcn.0040fedd
add esp, 0xc
call fcn.00408138
mov dword [ebp - 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408431
mov dword [ebp - 0x18], 0x64
cmp edi, ebx
je 0x408431
cmp dword [0x495d5c], ebx
jne 0x4086f3
cmp dword [0x499100], ebx
je 0x4086c8
push dword [0x495d60]
push str.Method
push ebx
call fcn.0040fedd
add esp, 0xc
push str.SunJavaUpdateRecheckUpdateEvent
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
je 0x4086c8
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4086c8
mov esi, dword [0x4980c0]
cmp esi, dword [0x4980c4]
jae 0x408798
mov eax, dword [esi]
cmp eax, ebx
je 0x408793
push ebx
call dword [eax + 0x20]
add esi, 4
jmp 0x408781
mov eax, 0x49912c
call fcn.00405db5
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
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.00448f97
add ebp, 0x74
leave
ret 0x10