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

Disassembly:
push 0xc4
mov eax, 0x5812b4
call fcn.0054c391
mov ebx, ecx
mov dword [ebp - 0xcc], ebx
call fcn.0041fb23
push 0x5c5178
mov ecx, ebx
call fcn.0041efa3
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00429baa
mov edi, eax
mov dword [ebp - 0xd0], edi
test edi, edi
je 0x4068c3
lea ecx, [ebp - 0xc8]
call fcn.00402bda
and dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
push 0x65
call fcn.00405cda
mov esi, dword [ebp - 0xc8]
xor ecx, ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0xc8], eax
cmp dword [eax + 4], ecx
je 0x4068b8
push ecx
push ecx
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
call edi
mov eax, dword [ebp - 0xd0]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0xc8]
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00402602
push dword [ebx + 0xd0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 0x80
push 1
push edi
push dword [ebx + 0x20]
mov byte [ebx + 0xdc], 0
call esi
push dword [ebx + 0xd0]
push 0
push edi
push dword [ebx + 0x20]
call esi
push str.JiSu_Installer_Ysk
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x406915
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406c83
xor eax, eax
lea ecx, [ebx + 0x480]
push eax
mov dword [ebx + 0xd8], eax
mov word [ebx + 0xdc], ax
mov byte [ebx + 0xde], al
call fcn.0041eff5
lea ecx, [ebx + 0x600]
push 0
call fcn.0041eff5
lea ecx, [ebx + 0x500]
push 0
call fcn.0041eff5
lea ecx, [ebx + 0x580]
push 0
call fcn.0041eff5
lea ecx, [ebx + 0x128]
push 0
call fcn.0041eff5
lea ecx, [ebx + 0x688]
push 0
call fcn.0041eff5
push 1
push 0xfbfbfb
mov ecx, ebx
call fcn.0042747f
movaps xmm0, xmmword [0x5c53b0]
lea edi, [ebp - 0x30]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x64
xor eax, eax
mov dword [ebp - 0x34], eax
mov esi, 0x5c49fc
mov dword [ebp - 0x38], 0x1000000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
lea edi, [ebx + 0x110]
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call fcn.00407b6b
test edi, edi
jne 0x4069d9
xor eax, eax
jmp 0x4069dc
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push eax
push 0x30
push dword [ebx + 0x520]
call esi
test edi, edi
jne 0x4069f7
xor eax, eax
jmp 0x4069fa
mov eax, dword [edi + 4]
push 1
push eax
push 0x30
push dword [ebx + 0x5a0]
call esi
movaps xmm0, xmmword [0x5c53c0]
lea edi, [ebp - 0x6c]
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0x64
xor eax, eax
mov dword [ebp - 0x70], eax
mov esi, 0x5c49fc
mov dword [ebp - 0x74], 0x1000000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x63]
stosd dword es:[edi], eax
lea esi, [ebx + 0x118]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call fcn.00407b6b
test esi, esi
jne 0x406a61
xor eax, eax
jmp 0x406a64
mov eax, dword [esi + 4]
push 1
push eax
push 0x30
push dword [ebx + 0x4a0]
call dword [sym.imp.USER32.dll_SendMessageA]
movaps xmm0, xmmword [0x5c53d0]
lea edi, [ebp - 0xa8]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x64
xor eax, eax
mov dword [ebp - 0xac], eax
mov esi, 0x5c49fc
mov dword [ebp - 0xb0], 0x1000000
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x9f]
stosd dword es:[edi], eax
lea esi, [ebx + 0x120]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call fcn.00407b6b
test esi, esi
jne 0x406ade
xor eax, eax
jmp 0x406ae1
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push eax
push 0x30
push dword [ebx + 0x258]
call edi
lea eax, [ebx + 0x230]
mov ecx, 0x89
push eax
call fcn.004046c7
lea eax, [ebx + 0x1a8]
mov ecx, 0x87
push eax
call fcn.004046c7
lea eax, [ebx + 0x680]
mov ecx, 0x8a
push eax
call fcn.004046c7
lea eax, [ebx + 0x708]
mov ecx, 0x88
push eax
call fcn.004046c7
add esp, 0x10
push 0xb6b6b6
push 0
push 0x2001
push dword [ebx + 0x2d8]
call edi
mov esi, dword [ebp - 0xcc]
push 0xfd9245
push 0
push 0x409
push dword [esi + 0x2d8]
call edi
push 0
push 0
push 0x20000
lea ecx, [ebx + 0x2b8]
call fcn.0041eba3
lea edi, [esi + 0x338]
and dword [edi + 0x60], 0
push ecx
push dword [edi + 0x8c]
mov ecx, edi
mov dword [edi + 0x64], 0x64
call fcn.00405c96
push 1
push 0
push dword [esi + 0x2d8]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
call esi
push ecx
lea ecx, [ebx + 0x2b8]
call fcn.0040652e
mov ebx, dword [ebp - 0xcc]
xor eax, eax
inc eax
push eax
push 0
mov dword [edi + 0x5c], eax
push dword [ebx + 0x2d8]
call esi
push ecx
mov ecx, ebx
call fcn.00406e89
push 0x5c51d4
lea ecx, [ebp - 0xcc]
call fcn.00405d0f
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00406ecc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xcc]
lea ecx, [ecx - 0x10]
call fcn.00402602
push 8
call fcn.00407109
pop ecx
mov esi, eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x406c72
push 4
call fcn.00407109
pop ecx
test eax, eax
je 0x406c3f
mov dword [eax], fcn.0040203c
jmp 0x406c41
xor eax, eax
mov dword [ebp - 0xc8], eax
lea edx, [ebp - 0xc8]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00406f5b
cmp dword [ebp - 0xc8], 0
je 0x406c74
push 4
push dword [ebp - 0xc8]
call fcn.0054bfac
pop ecx
pop ecx
jmp 0x406c74
xor esi, esi
xor eax, eax
mov dword [ebx + 0xd4], esi
inc eax
call fcn.0054c33b
ret
push 0
push 0
push 0x5c51a0
call fcn.00416d31
push 0xffffffffffffffff
call fcn.00554ce0
int3