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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov ecx, 0x518caa
call fcn.004dd464
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push esi
call fcn.004062e0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 1
mov dword [ebp - 4], 0
call fcn.00402970
mov ecx, eax
test ecx, ecx
je 0x4168a7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x14], eax
call fcn.004062e0
lea edx, [ebp - 0x20]
lea ecx, [ebp + 0x10]
call fcn.0040bb50
mov edx, dword [ebp + 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416574
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.GCMainWndOL
lea ecx, [ebp - 0x10]
call fcn.004062e0
mov bl, byte [ebp - 0x19]
test bl, bl
jne 0x416625
lea eax, [ebp - 0x10]
mov edx, str.Global_
push eax
lea ecx, [ebp + 0x10]
call fcn.004055d0
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 0x4165c8
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 0x4165dd
test esi, esi
jne 0x41666a
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x416846
cmp byte [ebp - 0x1e], 0
jne 0x416846
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 0x416846
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.004055d0
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 0x41666a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x20], 0
jne 0x41667f
test bl, bl
jne 0x41667f
lea ecx, [ebp - 0x20]
call fcn.0040c030
mov bl, byte [ebp - 0x19]
cmp byte [ebp - 0x1e], 0
jne 0x416699
test bl, bl
jne 0x416699
lea ecx, [ebp - 0x20]
call fcn.0040c2c0
test al, al
je 0x416846
mov ebx, dword [ebp + 8]
push ebx
call fcn.004669b1
add esp, 4
push 4
call fcn.00466c9a
add esp, 4
lea eax, [ebp - 0xb8]
push eax
call fcn.00461f9a
add esp, 4
call fcn.00462138
sub eax, 1
je 0x41676c
sub eax, 3
jne 0x4167a7
push str.skin_
lea ecx, [ebp - 0xb8]
call fcn.0046b041
lea ecx, [ebp - 0xb8]
call fcn.0046af82
push eax
call fcn.00466c51
add esp, 4
push 0x506eec
push 0x81
call fcn.00462123
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4167a7
push esi
call fcn.00462123
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416760
push esi
call fcn.00462123
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x416760
push 0
push eax
push ebx
call fcn.00466ca7
add esp, 0xc
call fcn.00416430
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.0046e473
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp + 8]
jmp 0x4167a7
push 0x506eb8
lea ecx, [ebp - 0xb8]
call fcn.0046b041
lea ecx, [ebp - 0xb8]
call fcn.0046af82
push eax
call fcn.00466c51
add esp, 4
call fcn.00416430
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.0046e473
lea ecx, [ebp - 0xb8]
call fcn.0046ae02
lea ecx, [ebp - 0x30]
call fcn.0045fef1
push 2
lea ecx, [ebp - 0x30]
call fcn.004601c4
push 0x7e0
call fcn.004b052b
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.00414120
cmp byte [ebp - 0x1e], 0
mov esi, eax
mov ecx, esi
jne 0x416841
push 0
push 0
push 0
push 0
push 0xfffffc18
push 0
push 0x96ca0000
push dword [ebp - 0x10]
push 0
call fcn.0046c7d3
push 0x6b
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
mov ecx, esi
call fcn.0046b41b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.0046c67d
push 5
mov ecx, esi
call fcn.0046b41b
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00464a92
jmp 0x416846
call fcn.00414f50
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416860
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 0x41687a
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 0x416892
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.004027e0
int3