Function at 0x40bd60
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 0x56d09c
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5c125c]
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.00453dc0
test al, al
jne 0x40c9f1
lea ecx, [ebp - 0x2a0]
call fcn.0041d7a0
call fcn.0041af50
push 3
call fcn.0047bb10
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.0041cbe0
mov esi, dword [0x5d9bd4]
lea ecx, [ebp - 0xa0]
mov byte [0x5d9bdc], 1
mov byte [0x5d9be4], 1
mov byte [0x5c1cfc], 1
mov byte [0x5d9bdd], 1
call fcn.0044d010
cmp dword [ebp - 0x90], ebx
je 0x40be3c
push 1
mov edx, 0x5a456c
lea ecx, [ebp - 0x28]
mov ebx, 2
call fcn.00403b30
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40be29
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041b200
mov byte [ebp - 0x251], 1
test al, al
je 0x40be43
mov byte [ebp - 0x251], 0
test bl, 2
je 0x40be60
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x40be60
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004086f0
cmp byte [ebp - 0x251], 0
je 0x40bece
push 0x5a3f3c
lea ecx, [ebp - 0x28]
call fcn.00407980
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x58]
call fcn.0044c640
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041b430
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40bea5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408f80
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 0x40bece
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004086f0
push 1
mov edx, 0x5a456c
lea ecx, [ebp - 0x28]
call fcn.00403b30
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40beea
mov ecx, dword [ecx]
mov dword [ebp - 0x260], ecx
test ecx, ecx
jne 0x40befc
mov dword [ebp - 0x25c], ecx
jmp 0x40bf1f
cmp byte [ecx], 0
jne 0x40bf0d
mov dword [ebp - 0x25c], 0
jmp 0x40bf1f
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf10
sub ecx, edx
mov dword [ebp - 0x25c], ecx
test bl, 0x20
je 0x40bf32
lea ecx, [ebp - 0x350]
and ebx, 0xffffffdf
call fcn.0041ce50
mov ecx, dword [0x5d9bd4]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b2b0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004078f0
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40bf69
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004086f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40bf90
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004086f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x5dabcc
push eax
call fcn.004082d0
call fcn.00444c30
mov edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x40bfb8
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004fcea4
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5ab588
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5ab580
mov dword [eax + 4], ecx
mov dword [edi], eax
call fcn.0044fdf0
push ecx
call fcn.0044f040
test al, al
jne 0x40c090
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40c015
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004086f0
cmp dword [0x5d9bfc], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
jne 0x40c04b
test bl, 0x40
je 0x40c05b
lea ecx, [ebp - 0x350]
call fcn.0041ce50
jmp 0x40c05b
call fcn.0041d910
mov eax, dword [ebp - 0x274]
mov dword [0x5d9bfc], eax
lea ecx, [ebp - 0x288]
call fcn.0041da20
push dword [ebp - 0x288]
call fcn.0056c31e
add esp, 4
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40c9f1
call fcn.0044fdf0
push ecx
call fcn.0044f110
test al, al
je 0x40c9db
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.00407780
call fcn.00447600
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00446fc0
lea ecx, [ebp - 0x28]
call fcn.00407740
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.00414ae0
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.0041e690
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.004167b0
push str._uninst.exe
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00409500
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.00417270
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x40c1ba
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c1cf
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408f80
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00416760
test al, al
je 0x40c293
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.00414530
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00415050
lea ecx, [ebp - 0x250]
call fcn.00417d00
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x150]
call fcn.0041ae60
mov edx, esi
lea ecx, [ebp - 0x150]
call fcn.0041a980
test bl, 8
je 0x40c232
lea ecx, [ebp - 0x350]
and ebx, 0xfffffff7
call fcn.0041ce50
test bl, 4
je 0x40c242
lea ecx, [ebp - 0xb8]
call fcn.00407740
lea eax, [ebp - 0x250]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x150]
call fcn.0040a0a0
add esp, 4
lea ecx, [ebp - 0x268]
mov edx, eax
call fcn.004158e0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x40c281
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408f80
lea ecx, [ebp - 0x264]
call fcn.00411e40
push 0
call fcn.0050a47d
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.00407780
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447600
mov ecx, eax
call fcn.00447410
lea ecx, [ebp - 0x28]
call fcn.00407740
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.00407780
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447600
mov ecx, eax
call fcn.00447410
lea ecx, [ebp - 0x28]
call fcn.00407740
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x88]
call fcn.00408530
push str._MUTEX_UNINST
lea ecx, [ebp - 0x88]
call fcn.00407870
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 0x40c44f
push str._uninst_CreateMutex_ERROR_ALREADY_EXISTS
lea ecx, [ebp - 0x88]
call fcn.00407870
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.00407980
call fcn.00444740
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100]
call fcn.004078b0
lea ecx, [ebp - 0x88]
call fcn.004078b0
lea ecx, [ebp - 0x118]
call fcn.00407740
lea ecx, [ebp - 0x4c]
call fcn.00407550
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40c3e9
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00408f80
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 0x40c412
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408f80
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00407740
lea ecx, [ebp - 0xa0]
call fcn.004078b0
lea ecx, [ebp - 0x2a0]
call fcn.0041d820
or eax, 0xffffffff
jmp 0x40c9f3
sub esp, 8
call fcn.0044a930
add esp, 4
mov ecx, eax
call fcn.0044a600
push 0x5a962c
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.00407780
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447600
mov ecx, eax
call fcn.00447410
lea ecx, [ebp - 0x28]
call fcn.00407740
push str.OLD_VERSION
lea ecx, [ebp - 0x28]
call fcn.00407780
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447600
mov ecx, eax
call fcn.00447410
lea ecx, [ebp - 0x28]
call fcn.00407740
push str.REG_MD5
lea ecx, [ebp - 0x28]
call fcn.00407780
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447600
mov ecx, eax
call fcn.00447410
lea ecx, [ebp - 0x28]
call fcn.00407740
push 0x5a965c
lea ecx, [ebp - 0x28]
call fcn.00407980
lea edx, [ebp - 0x1c8]
lea ecx, [ebp - 0x28]
call fcn.00444430
lea ecx, [ebp - 0x28]
call fcn.004078b0
push 0x5a9660
lea ecx, [ebp - 0x28]
call fcn.00407980
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x28]
call fcn.00444430
lea ecx, [ebp - 0x28]
call fcn.004078b0
push 0x5a9664
lea ecx, [ebp - 0x28]
call fcn.00407980
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0x28]
call fcn.00444430
lea ecx, [ebp - 0x28]
call fcn.004078b0
push dword [ebp + 8]
lea ecx, [ebp - 0x208]
call fcn.0040cde0
mov eax, ecx
sub esp, 0x18
mov dword [ebp - 0x26c], eax
mov ecx, esp
push str.BeginDoUnist
call fcn.00407980
call fcn.00444740
xor eax, eax
mov dword [ebp - 0xd4], 7
add esp, 0x18
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
call 0x40c5ee
pop eax
add eax, 0xf
push eax
xor eax, eax
mov eax, ecx
ret
lea ecx, [ebp - 0xa0]
call fcn.004078b0
lea ecx, [ebp - 0x2a0]
call fcn.0041d820
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.004fce93
mov esp, ebp
pop ebp
ret 0x10