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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de8f0
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.004dd904
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 0x416d4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
call fcn.00416900
or edi, 0xffffffff
test al, al
jne 0x416d06
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 0x416a21
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 0x416ad2
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 0x416a75
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 0x416a8a
test esi, esi
jne 0x416b17
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x416cec
cmp byte [ebp - 0x1e], 0
jne 0x416cec
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 0x416cec
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 0x416b17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x20], 0
jne 0x416b2c
test bl, bl
jne 0x416b2c
lea ecx, [ebp - 0x20]
call fcn.0040c530
mov bl, byte [ebp - 0x19]
cmp byte [ebp - 0x1e], 0
jne 0x416b46
test bl, bl
jne 0x416b46
lea ecx, [ebp - 0x20]
call fcn.0040c7c0
test al, al
je 0x416cec
mov ebx, dword [ebp + 8]
push ebx
call fcn.00466e51
add esp, 4
push 4
call fcn.0046713a
add esp, 4
lea eax, [ebp - 0xb8]
push eax
call fcn.0046243a
add esp, 4
call fcn.004625d8
sub eax, 1
je 0x416c19
sub eax, 3
jne 0x416c54
push str.skin_
lea ecx, [ebp - 0xb8]
call fcn.0046b4e1
lea ecx, [ebp - 0xb8]
call fcn.0046b422
push eax
call fcn.004670f1
add esp, 4
push 0x5099d8
push 0x81
call fcn.004625c3
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x416c54
push esi
call fcn.004625c3
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416c0d
push esi
call fcn.004625c3
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x416c0d
push 0
push eax
push ebx
call fcn.00467147
add esp, 0xc
call fcn.00416860
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.0046e913
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp + 8]
jmp 0x416c54
push str.skin_skin_
lea ecx, [ebp - 0xb8]
call fcn.0046b4e1
lea ecx, [ebp - 0xb8]
call fcn.0046b422
push eax
call fcn.004670f1
add esp, 4
call fcn.00416860
push 0
push ecx
mov ecx, esp
mov dword [ecx], 0x5099bc
mov ecx, eax
call fcn.0046e913
lea ecx, [ebp - 0xb8]
call fcn.0046b2a2
lea ecx, [ebp - 0x30]
call fcn.00460391
push 2
lea ecx, [ebp - 0x30]
call fcn.00460664
push 0x7e0
call fcn.004b09cb
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.00414680
cmp byte [ebp - 0x1e], 0
mov esi, eax
jne 0x416cec
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.0046cc73
push 0x6b
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
mov ecx, esi
call fcn.0046b8bb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.0046cb1d
push 5
mov ecx, esi
call fcn.0046b8bb
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00464f32
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416d06
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 0x416d20
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 0x416d38
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