Function at 0x40bcb0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56655c
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x5b925c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x224], ebx
call fcn.00453a30
test al, al
jne 0x40c92f
lea ecx, [ebp - 0x268]
call fcn.0041d3f0
call fcn.0041ac10
push 3
call fcn.0047ae26
add esp, 4
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], str.uninst.log
call fcn.0041c8a0
mov esi, dword [0x5d1b2c]
lea ecx, [ebp - 0xa0]
mov byte [0x5d1b34], 1
mov byte [0x5d1b3c], 1
mov byte [0x5b9cfc], 1
mov byte [0x5d1b35], 1
call fcn.0044ccb0
cmp dword [ebp - 0x90], ebx
je 0x40bd8c
push 1
mov edx, 0x59c50c
lea ecx, [ebp - 0x28]
mov ebx, 2
call fcn.00403b10
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40bd79
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041aec0
mov byte [ebp - 0x219], 1
test al, al
je 0x40bd93
mov byte [ebp - 0x219], 0
test bl, 2
je 0x40bdb0
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x40bdb0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408640
cmp byte [ebp - 0x219], 0
je 0x40be1e
push 0x59bedc
lea ecx, [ebp - 0x28]
call fcn.00407900
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x40]
call fcn.0044c2e0
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041b0f0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40bdf5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408ed0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 0x10
jb 0x40be1e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408640
push 1
mov edx, 0x59c50c
lea ecx, [ebp - 0x28]
call fcn.00403b10
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40be3a
mov ecx, dword [ecx]
mov dword [ebp - 0x228], ecx
test ecx, ecx
jne 0x40be4c
mov dword [ebp - 0x224], ecx
jmp 0x40be6f
cmp byte [ecx], 0
jne 0x40be5d
mov dword [ebp - 0x224], 0
jmp 0x40be6f
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be60
sub ecx, edx
mov dword [ebp - 0x224], ecx
test bl, 0x20
je 0x40be82
lea ecx, [ebp - 0x318]
and ebx, 0xffffffdf
call fcn.0041caa0
mov ecx, dword [0x5d1b2c]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041af70
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407870
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40beb9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408640
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x40bee0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408640
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x5d2b24
push eax
call fcn.00408220
call fcn.004447d0
mov edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40bf08
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004f6467
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5a3530
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5a3528
mov dword [eax + 4], ecx
mov dword [edi], eax
call fcn.0044faa0
push ecx
call fcn.0044ecd0
test al, al
jne 0x40bfe0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40bf65
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00408640
cmp dword [0x5d1b54], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
jne 0x40bf9b
test bl, 0x40
je 0x40bfab
lea ecx, [ebp - 0x318]
call fcn.0041caa0
jmp 0x40bfab
call fcn.0041d560
mov eax, dword [ebp - 0x23c]
mov dword [0x5d1b54], eax
lea ecx, [ebp - 0x250]
call fcn.0041d670
push dword [ebp - 0x250]
call fcn.0056582e
add esp, 4
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40c92f
call fcn.0044faa0
push ecx
call fcn.0044eda0
test al, al
je 0x40c919
xor eax, eax
mov dword [ebp - 0x11c], 7
push str.APPNAME_EN
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
call fcn.00407700
call fcn.00447310
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00446cd0
lea ecx, [ebp - 0x28]
call fcn.004076c0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x48], 0
call fcn.00414950
xor eax, eax
mov dword [ebp - 0x5c], 7
add esp, 4
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], 0
push eax
push 6
call fcn.0041e2e0
add esp, 8
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], 0
push eax
call fcn.00416600
push str._uninst.exe
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409450
add esp, 4
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x104], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x118]
mov dword [ecx], eax
mov eax, dword [ebp - 0x108]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.004170c0
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x40c0f8
push 0xffffffffffffffff
push 0
push eax
call fcn.00407db0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c10d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408ed0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.004165b0
test al, al
je 0x40c1d1
mov dl, 1
lea ecx, [ebp - 0x58]
call fcn.004143a0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.00414ec0
lea ecx, [ebp - 0x1d8]
call fcn.00417b50
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x150]
call fcn.0041ab20
mov edx, esi
lea ecx, [ebp - 0x150]
call fcn.0041a640
test bl, 8
je 0x40c170
lea ecx, [ebp - 0x318]
and ebx, 0xfffffff7
call fcn.0041caa0
test bl, 4
je 0x40c180
lea ecx, [ebp - 0xb8]
call fcn.004076c0
lea eax, [ebp - 0x1d8]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x150]
call fcn.00409ff0
add esp, 4
lea ecx, [ebp - 0x230]
mov edx, eax
call fcn.00415750
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x40c1bf
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408ed0
lea ecx, [ebp - 0x22c]
call fcn.00411d10
push 0
call fcn.00503ab0
push str.INST_MUTEX_NAME
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.00407700
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447310
mov ecx, eax
call fcn.00447120
lea ecx, [ebp - 0x28]
call fcn.004076c0
push str.APPNAME_EN
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
call fcn.00407700
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447310
mov ecx, eax
call fcn.00447120
lea ecx, [ebp - 0x28]
call fcn.004076c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x88]
call fcn.00408480
push str._MUTEX_UNINST
lea ecx, [ebp - 0x88]
call fcn.004077f0
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c38d
push str._uninst_CreateMutex_ERROR_ALREADY_EXISTS
lea ecx, [ebp - 0x88]
call fcn.004077f0
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.00407900
call fcn.004442e0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100]
call fcn.00407830
lea ecx, [ebp - 0x88]
call fcn.00407830
lea ecx, [ebp - 0x118]
call fcn.004076c0
lea ecx, [ebp - 0x34]
call fcn.004074d0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40c327
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00408ed0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x40c350
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408ed0
xor eax, eax
mov dword [ebp - 0x44], 7
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.004076c0
lea ecx, [ebp - 0xa0]
call fcn.00407830
lea ecx, [ebp - 0x268]
call fcn.0041d470
or eax, 0xffffffff
jmp 0x40c931
sub esp, 8
call fcn.0044a640
add esp, 4
mov ecx, eax
call fcn.0044a310
push 0x5a15d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x19c], 0xf
mov dword [ebp - 0x1a0], 0
mov byte [ebp - 0x1b0], 0
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], 0
mov byte [ebp - 0x180], 0
call fcn.00407700
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447310
mov ecx, eax
call fcn.00447120
lea ecx, [ebp - 0x28]
call fcn.004076c0
push str.OLD_VERSION
lea ecx, [ebp - 0x28]
call fcn.00407700
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447310
mov ecx, eax
call fcn.00447120
lea ecx, [ebp - 0x28]
call fcn.004076c0
push str.REG_MD5
lea ecx, [ebp - 0x28]
call fcn.00407700
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447310
mov ecx, eax
call fcn.00447120
lea ecx, [ebp - 0x28]
call fcn.004076c0
push 0x5a1600
lea ecx, [ebp - 0x28]
call fcn.00407900
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x28]
call fcn.00443f90
lea ecx, [ebp - 0x28]
call fcn.00407830
push 0x5a1604
lea ecx, [ebp - 0x28]
call fcn.00407900
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0x28]
call fcn.00443f90
lea ecx, [ebp - 0x28]
call fcn.00407830
push 0x5a1608
lea ecx, [ebp - 0x28]
call fcn.00407900
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x28]
call fcn.00443f90
lea ecx, [ebp - 0x28]
call fcn.00407830
push dword [ebp + 8]
lea ecx, [ebp - 0x218]
call fcn.0040cd10
mov eax, ecx
sub esp, 0x18
mov dword [ebp - 0x234], eax
mov ecx, esp
push str.BeginDoUnist
call fcn.00407900
call fcn.004442e0
xor eax, eax
mov dword [ebp - 0xd4], 7
add esp, 0x18
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
call 0x40c52c
pop eax
add eax, 0xf
push eax
xor eax, eax
mov eax, ecx
ret
lea ecx, [ebp - 0xa0]
call fcn.00407830
lea ecx, [ebp - 0x268]
call fcn.0041d470
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6456
mov esp, ebp
pop ebp
ret 0x10