Function at 0x416980
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov ecx, 0x51bcaa
call fcn.004dd914
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push esi
call fcn.00406300
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 1
mov dword [ebp - 4], 0
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x416d5d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
call fcn.00416910
or edi, 0xffffffff
test al, al
jne 0x416d16
push esi
lea ecx, [ebp + 0x10]
call fcn.00406300
lea edx, [ebp - 0x20]
lea ecx, [ebp + 0x10]
call fcn.0040c050
mov edx, dword [ebp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.GCMainWndOL
lea ecx, [ebp - 0x10]
call fcn.00406300
mov bl, byte [ebp - 0x19]
test bl, bl
jne 0x416ae2
lea eax, [ebp - 0x10]
mov edx, 0x509a38
push eax
lea ecx, [ebp + 0x10]
call fcn.004055f0
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 0x416a85
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 0x416a9a
test esi, esi
jne 0x416b27
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x416cfc
cmp byte [ebp - 0x1e], 0
jne 0x416cfc
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 0x416cfc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
mov edx, str.Global_
push eax
lea ecx, [ebp + 0x10]
call fcn.004055f0
add esp, 4
push dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416b27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x20], 0
jne 0x416b3c
test bl, bl
jne 0x416b3c
lea ecx, [ebp - 0x20]
call fcn.0040c530
mov bl, byte [ebp - 0x19]
cmp byte [ebp - 0x1e], 0
jne 0x416b56
test bl, bl
jne 0x416b56
lea ecx, [ebp - 0x20]
call fcn.0040c7c0
test al, al
je 0x416cfc
mov ebx, dword [ebp + 8]
push ebx
call fcn.00466e61
add esp, 4
push 4
call fcn.0046714a
add esp, 4
lea eax, [ebp - 0xb8]
push eax
call fcn.0046244a
add esp, 4
call fcn.004625e8
sub eax, 1
je 0x416c29
sub eax, 3
jne 0x416c64
push str.skin_
lea ecx, [ebp - 0xb8]
call fcn.0046b4f1
lea ecx, [ebp - 0xb8]
call fcn.0046b432
push eax
call fcn.00467101
add esp, 4
push 0x5099d8
push 0x81
call fcn.004625d3
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x416c64
push esi
call fcn.004625d3
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416c1d
push esi
call fcn.004625d3
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x416c1d
push 0
push eax
push ebx
call fcn.00467157
add esp, 0xc
call fcn.00416870
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.0046e923
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp + 8]
jmp 0x416c64
push str.skin_skin_
lea ecx, [ebp - 0xb8]
call fcn.0046b4f1
lea ecx, [ebp - 0xb8]
call fcn.0046b432
push eax
call fcn.00467101
add esp, 4
call fcn.00416870
push 0
push ecx
mov ecx, esp
mov dword [ecx], 0x5099bc
mov ecx, eax
call fcn.0046e923
lea ecx, [ebp - 0xb8]
call fcn.0046b2b2
lea ecx, [ebp - 0x30]
call fcn.004603a1
push 2
lea ecx, [ebp - 0x30]
call fcn.00460674
push 0x7e0
call fcn.004b09db
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.00414680
cmp byte [ebp - 0x1e], 0
mov esi, eax
jne 0x416cfc
push 0
push 0
push 0
push 0
push 0xfffffc18
push 0
push 0x96ca0000
push dword [ebp - 0x10]
mov ecx, esi
push 0
call fcn.0046cc83
push 0x6b
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
mov ecx, esi
call fcn.0046b8cb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.0046cb2d
push 5
mov ecx, esi
call fcn.0046b8cb
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00464f42
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416d16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x416d48
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.00402c50
int3