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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ecx, 0x524e73
call fcn.004e6414
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00408580
mov dword [ebp - 0x38], 0
xor bl, bl
mov word [ebp - 0x34], 0
mov word [ebp - 0x31], 0x100
mov dword [ebp - 4], 0
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x41f2dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], eax
call fcn.0041ee50
or edi, 0xffffffff
test al, al
jne 0x41f295
call fcn.00405840
cmp eax, 0x40
movzx ecx, bl
mov edx, 1
cmove ecx, edx
mov byte [ebp - 0x32], cl
lea ecx, [ebp + 0x10]
push esi
call fcn.00408580
lea edx, [ebp - 0x38]
lea ecx, [ebp + 0x10]
call fcn.00414460
mov edx, dword [ebp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ef85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.GCMainWnd
lea ecx, [ebp - 0x10]
call fcn.00408580
mov bh, byte [ebp - 0x37]
mov bl, byte [ebp - 0x31]
test bh, bh
jne 0x41f086
test bl, bl
jne 0x41f041
lea eax, [ebp - 0x10]
mov edx, str.Global_
push eax
lea ecx, [ebp + 0x10]
call fcn.00407840
add esp, 4
push dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp + 0x10]
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41efe4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41eff9
test esi, esi
jne 0x41f086
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x41f27b
cmp byte [ebp - 0x36], 0
jne 0x41f27b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf020
push 0x112
push ebx
call esi
push 0
push 0xf120
push 0x112
push ebx
call esi
jmp 0x41f27b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
mov edx, str.Global_
push eax
lea ecx, [ebp - 0x14]
call fcn.00407840
add esp, 4
push dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f086
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x38], 0
jne 0x41f09e
test bl, bl
jne 0x41f09e
lea ecx, [ebp - 0x38]
call fcn.00414900
mov bl, byte [ebp - 0x31]
mov bh, byte [ebp - 0x37]
test bh, bh
jne 0x41f0bb
cmp byte [ebp - 0x36], bh
jne 0x41f0bb
test bl, bl
jne 0x41f0bb
lea ecx, [ebp - 0x38]
call fcn.00414b90
test al, al
je 0x41f27b
mov ebx, dword [ebp + 8]
push ebx
call fcn.0046f401
add esp, 4
call fcn.0041ec80
lea ecx, [ebp - 0x28]
call fcn.00468941
push 2
lea ecx, [ebp - 0x28]
call fcn.00468c14
push 0x7e0
call fcn.004b8e60
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0041ca40
cmp byte [ebp - 0x36], 0
mov esi, eax
mov ecx, esi
jne 0x41f15e
push 0
push 0
push 0
push 0
push 0xfffffc18
push 0
push 0x96ca0000
push dword [ebp - 0x10]
push 0
call fcn.004752fe
push 0x6b
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
mov ecx, esi
call fcn.00473f46
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.004751a8
push 5
mov ecx, esi
call fcn.00473f46
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0046d4e2
jmp 0x41f27b
call fcn.0041d6d0
mov ecx, esi
call fcn.0041e4a0
cmp dword [esi + 0x78c], 0
jg 0x41f189
jl 0x41f2e6
cmp dword [esi + 0x788], 0x128c5680
jbe 0x41f2e6
push 0x18
call fcn.004b8e60
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x41f2dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 1
mov ecx, dword [esi + 0x780]
add ecx, 0xfffffff0
mov dword [ebp + 0x10], ecx
lea ecx, [eax - 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], ecx
je 0x41f23f
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp + 8], eax
jl 0x41f22d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41f22d
mov ecx, dword [ebp + 0x10]
call fcn.00408b90
mov edx, dword [ebp + 8]
mov ecx, edi
mov dword [ebp + 0x10], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f225
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebx + 4], eax
jmp 0x41f23f
mov eax, dword [esi + 0x780]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00408c90
mov dword [ebx], 0
movzx eax, byte [esi + 0x773]
mov dword [ebx + 0xc], eax
cmp byte [esi + 0x774], 0
je 0x41f25f
mov dword [ebx + 0x14], 0
cmp byte [esi + 0x775], 0
je 0x41f26f
mov dword [ebx + 0x10], 0
mov ecx, dword [esi + 0x76c]
push ebx
call fcn.00410cd0
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f295
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f2af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f2c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00403bc0
lea ecx, [esi + 0x76c]
call fcn.0041e810
push 5
mov ecx, eax
call fcn.0040f520
push 0
call fcn.004c78b8
int3