Function at 0x40c300
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58522c
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5d723c]
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 - 0x25c], ebx
call fcn.00455560
test al, al
jne 0x40cfc1
lea ecx, [ebp - 0x2a0]
call fcn.0041e4a0
call fcn.0041bb20
push 3
call fcn.00493125
add esp, 4
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], str.uninst.log
call fcn.0041d7c0
mov esi, dword [0x5ee61c]
lea ecx, [ebp - 0xa0]
mov byte [0x5ee624], 1
mov byte [0x5ee62c], 1
mov byte [0x5d7d5c], 1
mov byte [0x5ee625], 1
call fcn.0044e840
cmp dword [ebp - 0x90], ebx
je 0x40c3dc
push 1
mov edx, 0x5bc284
lea ecx, [ebp - 0x28]
mov ebx, 2
call fcn.00404000
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40c3c9
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041bdd0
mov byte [ebp - 0x251], 1
test al, al
je 0x40c3e3
mov byte [ebp - 0x251], 0
test bl, 2
je 0x40c400
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x40c400
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408c70
cmp byte [ebp - 0x251], 0
je 0x40c46e
push 0x5bbc4c
lea ecx, [ebp - 0x28]
call fcn.00407f10
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x58]
call fcn.0044de60
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041c000
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40c445
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409500
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
cmp eax, 0x10
jb 0x40c46e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408c70
push 1
mov edx, 0x5bc284
lea ecx, [ebp - 0x28]
call fcn.00404000
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40c48a
mov ecx, dword [ecx]
mov dword [ebp - 0x260], ecx
test ecx, ecx
jne 0x40c49c
mov dword [ebp - 0x25c], ecx
jmp 0x40c4bf
cmp byte [ecx], 0
jne 0x40c4ad
mov dword [ebp - 0x25c], 0
jmp 0x40c4bf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c4b0
sub ecx, edx
mov dword [ebp - 0x25c], ecx
test bl, 0x20
je 0x40c4d2
lea ecx, [ebp - 0x350]
and ebx, 0xffffffdf
call fcn.0041da30
mov ecx, dword [0x5ee61c]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041be80
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407e80
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40c509
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408c70
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40c530
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408c70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x5ef678
push eax
call fcn.00408850
call fcn.00446100
mov edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40c558
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.005126bf
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5c1e60
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5c1e58
mov dword [eax + 4], ecx
mov dword [edi], eax
call fcn.00451580
push ecx
call fcn.00450a70
test al, al
jne 0x40c62f
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40c5b5
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00408c70
cmp dword [0x5ee644], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
jne 0x40c5eb
test bl, 0x40
je 0x40c5fb
lea ecx, [ebp - 0x350]
call fcn.0041da30
jmp 0x40c5fb
call fcn.0041e610
mov eax, dword [ebp - 0x274]
mov dword [0x5ee644], eax
lea ecx, [ebp - 0x288]
call fcn.0041e720
push 1
push dword [ebp - 0x288]
call fcn.0041ea30
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x288], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40cfc1
call fcn.00451580
push ecx
call fcn.00450b40
test al, al
je 0x40cfab
mov eax, dword [0x5ef42c]
test eax, eax
je 0x40c64f
call eax
jmp 0x40c664
test bl, bl
jns 0x40c664
lea ecx, [ebp - 0x350]
and ebx, 0xffffff7f
call fcn.0041da30
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.00407c80
call fcn.00448ad0
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00448490
lea ecx, [ebp - 0x28]
call fcn.00407c40
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0
call fcn.00415250
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x70]
push eax
push 6
mov dword [ebp - 0x60], 0
call fcn.0041f6e0
add esp, 8
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x44], 0
push eax
call fcn.004171f0
push str._uninst.exe
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409a80
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 - 0x40]
call fcn.00417cb0
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x40c77b
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c790
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409500
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.004171a0
test al, al
je 0x40c854
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.00414cd0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004159f0
lea ecx, [ebp - 0x250]
call fcn.00418790
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x150]
call fcn.0041ba30
mov edx, esi
lea ecx, [ebp - 0x150]
call fcn.0041b550
test bl, 8
je 0x40c7f3
lea ecx, [ebp - 0x350]
and ebx, 0xfffffff7
call fcn.0041da30
test bl, 4
je 0x40c803
lea ecx, [ebp - 0xb8]
call fcn.00407c40
lea eax, [ebp - 0x250]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x150]
call fcn.0040a640
add esp, 4
lea ecx, [ebp - 0x268]
mov edx, eax
call fcn.004162f0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x40c842
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409500
lea ecx, [ebp - 0x264]
call fcn.00412670
push 0
call fcn.0051f422
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.00407c80
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448ad0
mov ecx, eax
call fcn.004488e0
lea ecx, [ebp - 0x28]
call fcn.00407c40
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.00407c80
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448ad0
mov ecx, eax
call fcn.004488e0
lea ecx, [ebp - 0x28]
call fcn.00407c40
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x88]
call fcn.00408ab0
push str._MUTEX_UNINST
lea ecx, [ebp - 0x88]
call fcn.00407dc0
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 0x40ca10
push str._uninst_CreateMutex_ERROR_ALREADY_EXISTS
lea ecx, [ebp - 0x88]
call fcn.00407dc0
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.00407f10
call fcn.00445c90
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100]
call fcn.00407e40
lea ecx, [ebp - 0x88]
call fcn.00407e40
lea ecx, [ebp - 0x118]
call fcn.00407c40
lea ecx, [ebp - 0x4c]
call fcn.00407a20
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40c9aa
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409500
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x40c9d3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409500
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00407c40
lea ecx, [ebp - 0xa0]
call fcn.00407e40
lea ecx, [ebp - 0x2a0]
call fcn.0041e520
or eax, 0xffffffff
jmp 0x40cfc3
sub esp, 8
call fcn.0044be00
add esp, 4
mov ecx, eax
call fcn.0044bad0
push 0x5bfef8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1b4], 0xf
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 0x1c8], 0
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
call fcn.00407c80
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448ad0
mov ecx, eax
call fcn.004488e0
lea ecx, [ebp - 0x28]
call fcn.00407c40
push str.OLD_VERSION
lea ecx, [ebp - 0x28]
call fcn.00407c80
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448ad0
mov ecx, eax
call fcn.004488e0
lea ecx, [ebp - 0x28]
call fcn.00407c40
push str.REG_MD5
lea ecx, [ebp - 0x28]
call fcn.00407c80
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00448ad0
mov ecx, eax
call fcn.004488e0
lea ecx, [ebp - 0x28]
call fcn.00407c40
push 0x5bff28
lea ecx, [ebp - 0x28]
call fcn.00407f10
lea edx, [ebp - 0x1c8]
lea ecx, [ebp - 0x28]
call fcn.00445a10
lea ecx, [ebp - 0x28]
call fcn.00407e40
push 0x5bff2c
lea ecx, [ebp - 0x28]
call fcn.00407f10
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x28]
call fcn.00445a10
lea ecx, [ebp - 0x28]
call fcn.00407e40
push 0x5bff30
lea ecx, [ebp - 0x28]
call fcn.00407f10
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0x28]
call fcn.00445a10
lea ecx, [ebp - 0x28]
call fcn.00407e40
push dword [ebp + 8]
lea ecx, [ebp - 0x208]
call fcn.0040d3b0
mov eax, ecx
sub esp, 0x18
mov dword [ebp - 0x26c], eax
mov ecx, esp
push str.BeginDoUnist
call fcn.00407f10
call fcn.00445c90
xor eax, eax
mov dword [ebp - 0xd4], 7
add esp, 0x18
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
call 0x40cbaf
pop eax
add eax, 0xf
push eax
xor eax, eax
mov eax, ecx
ret
lea ecx, [ebp - 0xa0]
call fcn.00407e40
lea ecx, [ebp - 0x2a0]
call fcn.0041e520
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.005126ae
mov esp, ebp
pop ebp
ret 0x10