Function at 0x10008230
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10045fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
xor esi, esi
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
jl 0x1000837a
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], esi
mov word [esp + 0x24], si
cmp edi, esi
mov dword [esp + 0x90], esi
je 0x100082d8
mov eax, edi
lea edx, [eax + 2]
jmp 0x100082b0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100082b0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x28]
call fcn.100025e0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10008382
xor esi, esi
lea edi, [esp + 0x58]
call fcn.1001e1b0
mov byte [esp + 0x90], 1
call fcn.10020100
test al, al
mov edi, 8
je 0x10008356
mov edx, 0x10047a94
lea eax, [esp + 0x3c]
call fcn.10001ec0
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x98], 2
call fcn.100207d0
cmp dword [esp + 0x54], edi
mov bl, al
jb 0x10008331
mov ecx, dword [esp + 0x40]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x10008356
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 0
call fcn.1001e2d0
lea ecx, [esp + 0x20]
call fcn.10001f30
xor eax, eax
jmp 0x100085de
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 0
call fcn.1001e2d0
cmp dword [esp + 0x38], edi
jb 0x1000837a
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
jmp 0x100085de
push str.upgrade
mov edi, 7
lea ecx, [esp + 0x24]
call fcn.100098d0
test eax, eax
je 0x10008473
mov eax, dword [esp + 0x34]
push str.update
mov edi, 6
lea ecx, [esp + 0x24]
call fcn.100098d0
test eax, eax
je 0x100083ce
mov esi, str.manual
lea ecx, [esp + 0x20]
call fcn.10009890
test al, al
je 0x10008547
push str.CoralExplorerUpdate
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10008547
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x10008463
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0x2b6
lea edx, [esp + 0x40]
push edx
call eax
mov byte [esp + 0x90], 3
mov ebx, dword [ebx + 0x40]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push 0x206
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x5c]
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x10008437
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x10008445
lea eax, [esp + 0x40]
push 0x10
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x58]
call fcn.10001f30
lea ecx, [esp + 0x3c]
call fcn.10001f30
lea ecx, [esp + 0x20]
call fcn.10001f30
xor eax, eax
jmp 0x100085de
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push str.CoralExplorerUpdate
push 1
push 0
call edi
call ebx
cmp eax, 0xb7
jne 0x100084a8
push 0xc8
add esi, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x19
jle 0x10008481
push str.CoralExplorerUpdate_ex
push 1
push 0
call edi
call ebx
cmp eax, 0xb7
jne 0x10008543
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0x2b6
lea edx, [esp + 0x5c]
push edx
call eax
mov byte [esp + 0x90], 4
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0x206
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [esp + 0x40]
mov edi, 8
cmp dword [esp + 0x54], edi
jae 0x10008507
lea ecx, [esp + 0x40]
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x10008515
lea eax, [esp + 0x5c]
push 0x10
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x3c]
call fcn.10001f30
lea ecx, [esp + 0x58]
call fcn.10001f30
lea ecx, [esp + 0x20]
call fcn.10001f30
xor eax, eax
jmp 0x100085de
mov ebx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea esi, [ebx + 4]
push esi
call fcn.10007d30
test eax, eax
jl 0x10008595
call fcn.1003a790
test al, al
lea edi, [ebx + 0x68]
lea eax, [ebx + 0x4c]
je 0x100085a3
call fcn.10023960
test al, al
jne 0x100085aa
lea ecx, [esp + 0x20]
call fcn.10001f30
or eax, 0xffffffff
jmp 0x100085de
call fcn.10023920
jmp 0x10008591
mov ecx, dword [edi]
push ecx
push 0x100552ec
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.10008600
mov edi, eax
mov eax, esi
call fcn.10007e00
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x20]
call fcn.10001f30
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1003ec9d
mov esp, ebp
pop ebp
ret