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 0x56ad4c
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5bf23c]
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.00454480
test al, al
jne 0x40ca00
lea ecx, [ebp - 0x2a0]
call fcn.0041d860
call fcn.0041b080
push 3
call fcn.0047ed36
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.0041cd10
mov esi, dword [0x5d62cc]
lea ecx, [ebp - 0xa0]
mov byte [0x5d62d4], 1
mov byte [0x5d62dc], 1
mov byte [0x5bfd0c], 1
mov byte [0x5d62d5], 1
call fcn.0044d4e0
cmp dword [ebp - 0x90], ebx
je 0x40be3c
push 1
mov edx, 0x5a1e34
lea ecx, [ebp - 0x28]
mov ebx, 2
call fcn.00403b50
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40be29
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041b330
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 0x5a17fc
lea ecx, [ebp - 0x28]
call fcn.004079b0
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x58]
call fcn.0044cb00
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041b560
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, 0x5a1e34
lea ecx, [ebp - 0x28]
call fcn.00403b50
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.0041cf10
mov ecx, dword [0x5d62cc]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b3e0
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407920
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, 0x5d72c4
push eax
call fcn.004082d0
call fcn.00444da0
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.004fc848
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5a8f10
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5a8f08
mov dword [eax + 4], ecx
mov dword [edi], eax
call fcn.004504f0
push ecx
call fcn.0044f720
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 [0x5d62f4], 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.0041cf10
jmp 0x40c05b
call fcn.0041d9d0
mov eax, dword [ebp - 0x274]
mov dword [0x5d62f4], eax
lea ecx, [ebp - 0x288]
call fcn.0041dae0
push dword [ebp - 0x288]
call fcn.004fc87b
add esp, 4
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40ca00
call fcn.004504f0
push ecx
call fcn.0044f7f0
test al, al
je 0x40c9ea
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.004077b0
call fcn.00447770
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00447130
lea ecx, [ebp - 0x28]
call fcn.00407770
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.004149f0
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.0041e830
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.00416930
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.004173f0
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.004168e0
test al, al
je 0x40c293
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.00414470
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00415190
lea ecx, [ebp - 0x250]
call fcn.00417ec0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x150]
call fcn.0041af90
mov edx, esi
lea ecx, [ebp - 0x150]
call fcn.0041aab0
test bl, 8
je 0x40c232
lea ecx, [ebp - 0x350]
and ebx, 0xfffffff7
call fcn.0041cf10
test bl, 4
je 0x40c242
lea ecx, [ebp - 0xb8]
call fcn.00407770
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.00415a60
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.00411de0
push 0
call fcn.00509df2
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.004077b0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447770
mov ecx, eax
call fcn.00447580
lea ecx, [ebp - 0x28]
call fcn.00407770
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.004077b0
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447770
mov ecx, eax
call fcn.00447580
lea ecx, [ebp - 0x28]
call fcn.00407770
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.004078a0
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.004078a0
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.004079b0
call fcn.004448b0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100]
call fcn.004078e0
lea ecx, [ebp - 0x88]
call fcn.004078e0
lea ecx, [ebp - 0x118]
call fcn.00407770
lea ecx, [ebp - 0x4c]
call fcn.00407580
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.00407770
lea ecx, [ebp - 0xa0]
call fcn.004078e0
lea ecx, [ebp - 0x2a0]
call fcn.0041d8e0
or eax, 0xffffffff
jmp 0x40ca02
sub esp, 8
call fcn.0044aaa0
add esp, 4
mov ecx, eax
call fcn.0044a770
push 0x5a6f7c
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.004077b0
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447770
mov ecx, eax
call fcn.00447580
lea ecx, [ebp - 0x28]
call fcn.00407770
push str.OLD_VERSION
lea ecx, [ebp - 0x28]
call fcn.004077b0
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447770
mov ecx, eax
call fcn.00447580
lea ecx, [ebp - 0x28]
call fcn.00407770
push str.REG_MD5
lea ecx, [ebp - 0x28]
call fcn.004077b0
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447770
mov ecx, eax
call fcn.00447580
lea ecx, [ebp - 0x28]
call fcn.00407770
push 0x5a6fac
lea ecx, [ebp - 0x28]
call fcn.004079b0
lea edx, [ebp - 0x1c8]
lea ecx, [ebp - 0x28]
call fcn.00444560
lea ecx, [ebp - 0x28]
call fcn.004078e0
push 0x5a6fb0
lea ecx, [ebp - 0x28]
call fcn.004079b0
lea edx, [ebp - 0x1b0]
lea ecx, [ebp - 0x28]
call fcn.00444560
lea ecx, [ebp - 0x28]
call fcn.004078e0
push 0x5a6fb4
lea ecx, [ebp - 0x28]
call fcn.004079b0
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0x28]
call fcn.00444560
lea ecx, [ebp - 0x28]
call fcn.004078e0
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.004079b0
call fcn.004448b0
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.004078e0
lea ecx, [ebp - 0x2a0]
call fcn.0041d8e0
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.004fc837
mov esp, ebp
pop ebp
ret 0x10