Function at 0x4095b0
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4c96
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4f31b4]
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
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
cmp word [esi], ax
jne 0x409600
xor ecx, ecx
jmp 0x409614
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409605
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00405280
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x128]
call fcn.00441d80
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x409641
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00405920
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x28]
call fcn.00441de0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x409660
mov ecx, dword [ecx]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x409660
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409686
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [ebp - 0x16c]
call fcn.004163a0
mov ebx, dword [0x5075c4]
mov dword [ebp - 0x130], ebx
test ebx, ebx
jne 0x40970b
push 0x20
call fcn.00493b29
mov ecx, eax
call fcn.00417970
mov dword [0x5075c4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404e00
lea eax, [ebp - 0x58]
push eax
call fcn.00418140
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4096eb
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00405920
mov ebx, dword [0x5075c4]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x130], ebx
xor eax, eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0xb8]
push eax
push 6
mov dword [ebp - 0xa8], 0
call fcn.00419400
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xb8]
push eax
call fcn.00412890
xor ecx, ecx
mov dword [ebp - 0xd4], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0xe8], cx
lea ecx, [ebp - 0xe8]
push eax
mov dword [ebp - 0xd8], 0
call fcn.00405380
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409789
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
call fcn.0043bd90
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40979c
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.00493b29
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x4e7a34
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x4e7a2c
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.00444b00
push ecx
call fcn.00443ec0
test al, al
jne 0x4097e4
mov ebx, dword [ebp - 0x134]
xor esi, esi
jmp 0x409f57
call fcn.00442530
mov esi, eax
xor edi, edi
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
sar ecx, 3
test ecx, ecx
je 0x40981b
nop word [eax + eax]
mov eax, dword [esi + 0x78]
push 0
mov ecx, dword [eax + edi*8]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0x7c]
inc edi
sub eax, dword [esi + 0x78]
sar eax, 3
cmp edi, eax
jb 0x409800
call fcn.00441cf0
mov byte [0x506510], al
test al, al
jne 0x409973
call fcn.00441c70
test al, al
jne 0x409870
mov eax, 1
mov edx, 0x4e1298
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x134], eax
call fcn.00409190
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40985d
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00417ce0
mov byte [ebp - 0x129], 1
test al, al
je 0x409877
mov byte [ebp - 0x129], 0
mov eax, dword [ebp - 0x134]
test al, 1
je 0x409895
and eax, 0xfffffffe
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x134], eax
call fcn.00404eb0
cmp byte [ebp - 0x129], 0
je 0x4098ac
mov ebx, dword [ebp - 0x134]
or esi, 0xffffffff
jmp 0x409f57
lea ecx, [ebp - 0x110]
call fcn.00416360
mov eax, ecx
mov byte [ebp - 0x110], 0
push eax
mov edx, ebx
lea ecx, [ebp - 0x13c]
call fcn.00414fa0
add esp, 4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4098dd
cmp ecx, 0xffffffff
jne 0x4098e9
cmp byte [eax], 0
mov byte [ebp - 0x129], 0
je 0x4098f0
mov byte [ebp - 0x129], 1
lea ecx, [ebp - 0x138]
call fcn.00410340
push ecx
mov edx, 0x4e1298
lea ecx, [ebp - 0x100]
call fcn.00409190
add esp, 4
cmp byte [ebp - 0x129], 0
je 0x409941
cmp dword [eax + 0x14], 0x10
jb 0x409920
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00417ce0
lea ecx, [ebp - 0x100]
call fcn.00404eb0
mov ebx, dword [ebp - 0x134]
or esi, 0xffffffff
jmp 0x409f57
cmp dword [eax + 0x14], 0x10
jb 0x409949
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00417ce0
test al, al
lea ecx, [ebp - 0x100]
sete bl
call fcn.00404eb0
test bl, bl
je 0x409973
mov ebx, dword [ebp - 0x134]
or esi, 0xffffffff
jmp 0x409f57
xor eax, eax
mov dword [ebp - 0x74], 7
push str.REG_UNINSTALL_PATH
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00404e00
call fcn.0043e3b0
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0043dcd0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4099c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
mov ebx, dword [ebp - 0x134]
mov edx, 0x4e1298
push ecx
lea ecx, [ebp - 0x28]
or ebx, 2
call fcn.00409190
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4099e5
mov eax, dword [eax]
mov esi, dword [ebp - 0x130]
mov ecx, esi
push eax
call fcn.00417ce0
test al, al
jne 0x409a19
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0040a070
mov byte [ebp - 0x129], 1
test al, al
jne 0x409a20
mov byte [ebp - 0x129], 0
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x409a38
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405570
cmp byte [ebp - 0x129], 0
je 0x409ae7
push ecx
mov edx, 0x4e1298
lea ecx, [ebp - 0x100]
call fcn.00409190
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x409a61
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040a4b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00417f10
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409aa2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x409ab7
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00405570
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x409ae7
inc eax
lea ecx, [ebp - 0x100]
push eax
push dword [ebp - 0x100]
call fcn.00405570
push str.FILE_VERSION
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
call fcn.00404e00
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043e3b0
mov ecx, eax
call fcn.0043e120
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409b3b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.CurDate
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x442980
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409b7e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.CurDateShort
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x442a30
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409bc1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.FirstInstallTime
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x442b00
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409c04
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.UninstFirstInstallTime
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x442be0
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409c47
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.UpdateTime
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, fcn.00442cc0
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409c8a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.InstallCount
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x442ec0
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409ccd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push 0x4e5e88
lea ecx, [ebp - 0x28]
call fcn.00404e00
call fcn.0043e3b0
sub esp, 8
mov edx, 0x4430f0
mov ecx, esp
mov esi, eax
call fcn.0040b0d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0043e310
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409d10
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push 0x4e0c60
lea ecx, [ebp - 0x28]
call fcn.00404e00
push str.IS_INSTALL_SUCCESS
lea ecx, [ebp - 0x70]
call fcn.00404e00
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043e3b0
mov ecx, eax
call fcn.0043e230
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x409d53
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00405920
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x409d7c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.INST_MUTEX_NAME
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00404e00
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043e3b0
mov ecx, eax
call fcn.0043e120
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409dc4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push str.APPNAME_EN
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
call fcn.00404e00
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043e3b0
mov ecx, eax
call fcn.0043e120
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409e18
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405920
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a970
push 0xe
push str._MUTEX_INSTALL
lea ecx, [ebp - 0x40]
call fcn.0040a840
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
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 0x409e7a
push 0x29
push str._install_CreateMutex_ERROR_ALREADY_EXISTS
lea ecx, [ebp - 0x40]
call fcn.0040a840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
jmp 0x409e8c
call fcn.00409310
call fcn.004091c0
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x409eaa
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00405570
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 0x10
jb 0x409eda
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00405570
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x409f0a
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00405570
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
cmp eax, 8
jb 0x409f40
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00405920
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x409f75
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00405920
xor eax, eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd8], 0
cmp eax, 8
jb 0x409fb0
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00405920
xor eax, eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
cmp dword [0x5075c0], eax
jne 0x409fe7
test bl, 8
je 0x409ff7
lea ecx, [ebp - 0x220]
call fcn.0041a040
jmp 0x409ff7
call fcn.004164c0
mov eax, dword [ebp - 0x140]
mov dword [0x5075c0], eax
lea ecx, [ebp - 0x154]
call fcn.004165d0
push dword [ebp - 0x154]
call fcn.00489c95
add esp, 4
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x40a045
inc ecx
push ecx
push dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
call fcn.00405570
mov eax, esi
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.00493b18
mov esp, ebp
pop ebp
ret 0x10