Function at 0x40d660
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov ecx, 0x4f0d35
call fcn.004a237d
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404590
lea ecx, [ebp - 0x64]
call fcn.0040cc50
call fcn.0040d5d0
movzx ecx, al
test ecx, ecx
je 0x40d6af
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x64]
call fcn.0040ce10
lea ecx, [ebp - 0xc]
call fcn.00404b70
mov eax, dword [ebp - 0x20]
jmp 0x40d96b
call fcn.00407950
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.00404590
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040b3f0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00404b70
push str.GCMainWnd
lea ecx, [ebp - 4]
call fcn.00404590
movzx edx, byte [ebp - 0x63]
test edx, edx
jne 0x40d7f6
movzx eax, byte [ebp - 0x5d]
test eax, eax
jne 0x40d7b9
lea ecx, [ebp - 4]
push ecx
push 0x4ca350
lea edx, [ebp - 0x24]
push edx
call fcn.00404f80
add esp, 0xc
mov ecx, eax
call fcn.00404f60
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.00404b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d742
cmp dword [ebp - 0x28], 0
jne 0x40d7b7
lea ecx, [ebp - 4]
call fcn.00404f60
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d790
movzx eax, byte [ebp - 0x62]
test eax, eax
jne 0x40d790
push 0
push 0xf020
push 0x112
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf120
push 0x112
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 4]
call fcn.00404b70
lea ecx, [ebp - 0x64]
call fcn.0040ce10
lea ecx, [ebp - 0xc]
call fcn.00404b70
mov eax, dword [ebp - 0x2c]
jmp 0x40d96b
jmp 0x40d7f6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push str.Global_
lea ecx, [ebp - 0x30]
push ecx
call fcn.00404f80
add esp, 0xc
mov ecx, eax
call fcn.00404f60
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x30]
call fcn.00404b70
movzx edx, byte [ebp - 0x63]
test edx, edx
jne 0x40d848
movzx eax, byte [ebp - 0x62]
test eax, eax
jne 0x40d848
movzx ecx, byte [ebp - 0x5d]
test ecx, ecx
jne 0x40d848
lea edx, [ebp - 0x64]
push edx
call fcn.0040b6c0
add esp, 4
movzx eax, al
test eax, eax
jne 0x40d848
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 4]
call fcn.00404b70
lea ecx, [ebp - 0x64]
call fcn.0040ce10
lea ecx, [ebp - 0xc]
call fcn.00404b70
mov eax, dword [ebp - 0x34]
jmp 0x40d96b
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041a7e0
add esp, 4
call fcn.0040d520
lea ecx, [ebp - 0x54]
call fcn.00420260
push 2
lea ecx, [ebp - 0x54]
call fcn.00420630
push 0x7e0
call fcn.004a23d2
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d892
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040c9b0
mov dword [ebp - 0x1c], eax
jmp 0x40d899
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 0x62]
test edx, edx
jne 0x40d918
push 0
push 0
push 0
push 0
push 0xfffffc18
push 0
push 0x96ca0000
lea ecx, [ebp - 4]
call fcn.00404f60
push eax
push 0
mov ecx, dword [ebp - 8]
call fcn.0041b970
push 0x6b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
push 0x80
mov ecx, dword [ebp - 8]
call fcn.0040e8e0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 8]
call fcn.0041b770
push 5
mov ecx, dword [ebp - 8]
call fcn.0040e8e0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d944
mov ecx, dword [ebp - 8]
call fcn.0040d0f0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 4]
call fcn.00404b70
lea ecx, [ebp - 0x64]
call fcn.0040ce10
lea ecx, [ebp - 0xc]
call fcn.00404b70
mov eax, dword [ebp - 0x40]
jmp 0x40d96b
call fcn.00417a30
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 4]
call fcn.00404b70
lea ecx, [ebp - 0x64]
call fcn.0040ce10
lea ecx, [ebp - 0xc]
call fcn.00404b70
mov eax, dword [ebp - 0x44]
mov esp, ebp
pop ebp
ret 0x10