Function at 0x46aec0
Capabilities:
Check mutex on windows
Enumerate gui resources
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fc75c
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x546320]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x546320]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
xor ebx, ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0x18], ebx
xorps xmm0, xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], ebx
call fcn.00489160
cmp dword [edi + 0x144], ebx
jbe 0x46b0bf
mov eax, dword [edi + 0x140]
mov esi, dword [eax]
cmp esi, eax
je 0x46b0bf
jmp 0x46af50
push dword [esi + 8]
lea eax, [esp + 0x28]
mov ecx, 0x552330
push eax
call fcn.00474a10
cmp dword [eax + 0x14], 8
jb 0x46af6a
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x38], 8
jb 0x46af89
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46afe5
push dword [esi + 8]
lea eax, [esp + 0x78]
mov ecx, 0x552330
push eax
call fcn.00474960
mov dword [esp + 0xb0], 0
lea ecx, [esp + 0x90]
or ebx, 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489390
mov byte [esp + 0x13], 0
test al, al
je 0x46afea
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 1
je 0x46b014
and ebx, 0xfffffffe
cmp dword [esp + 0x88], 8
jb 0x46b014
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46b067
mov byte [esi + 0x4c], 1
mov ecx, 0x552330
push dword [esi + 8]
call fcn.004791a0
mov dword [esi + 0x24], eax
cmp dword [esi + 0x48], 0
jne 0x46b0b1
mov dword [esi + 0x48], 1
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x58], eax
mov byte [esp + 0x64], 1
mov eax, dword [esi + 8]
mov dword [esp + 0x70], eax
test ecx, ecx
je 0x46b204
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x78]
jmp 0x46b0ab
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46b0b1
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x68], eax
mov byte [esp + 0x60], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x46b204
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x5c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov esi, dword [esi]
cmp esi, dword [edi + 0x140]
jne 0x46af50
cmp dword [edi + 0x14c], 0
jbe 0x46b262
mov eax, dword [edi + 0x148]
mov esi, dword [eax]
cmp esi, eax
je 0x46b262
lea esp, [esp]
push dword [esi + 8]
mov edi, dword [esi + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x552470
and edi, 0xffffff
call fcn.00474a10
cmp dword [eax + 0x14], 8
jb 0x46b103
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x38], 8
jb 0x46b122
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46b17c
push edi
lea eax, [esp + 0x78]
mov ecx, 0x552470
push eax
call fcn.00474960
mov dword [esp + 0xb0], 1
lea ecx, [esp + 0x90]
or ebx, 2
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489390
mov byte [esp + 0x13], 0
test al, al
je 0x46b181
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 2
je 0x46b1ab
and ebx, 0xfffffffd
cmp dword [esp + 0x88], 8
jb 0x46b1ab
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46b20a
mov byte [esi + 0x4c], 1
mov ecx, 0x552470
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
call fcn.004791a0
mov edi, dword [esp + 0x14]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x48], 0
jne 0x46b254
mov dword [esi + 0x48], 1
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x54], eax
mov byte [esp + 0x60], 1
mov eax, dword [esi + 8]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x46b204
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x70]
jmp 0x46b24e
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
mov edi, dword [esp + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46b254
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x70], eax
mov byte [esp + 0x64], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x46b204
lea edx, [esp + 0x70]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x60]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov esi, dword [esi]
cmp esi, dword [edi + 0x148]
jne 0x46b0e0
cmp dword [edi + 0x154], 0
jbe 0x46b4d4
mov eax, dword [edi + 0x150]
mov esi, dword [eax]
cmp esi, eax
je 0x46b4d4
nop
mov eax, dword [esi + 8]
mov ecx, 0x5525b0
push dword [esi + 8]
and eax, 0xffffff
mov dword [esp + 0x58], eax
lea eax, [esp + 0x78]
push eax
call fcn.00474a10
cmp dword [eax + 0x14], 8
jb 0x46b2a6
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x88], 8
jb 0x46b2c8
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46b32b
push dword [esp + 0x54]
lea eax, [esp + 0x40]
mov ecx, 0x5525b0
push eax
call fcn.00474960
mov dword [esp + 0xb0], 2
lea ecx, [esp + 0x90]
or ebx, 4
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489390
mov byte [esp + 0x13], 0
test al, al
je 0x46b330
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 4
je 0x46b357
and ebx, 0xfffffffb
cmp dword [esp + 0x50], 8
jb 0x46b357
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46b470
mov byte [esi + 0x4c], 1
mov ecx, 0x5525b0
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00474960
lea ecx, [esp + 0x24]
mov dword [esp + 0xb0], 3
call fcn.00489160
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
call fcn.00489390
test al, al
jne 0x46b3ca
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b3c6
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
jmp 0x46b425
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.004864e0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x1c]
push eax
push 0x479080
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b425
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x24], edi
cmp dword [esi + 0x48], 0
jne 0x46b4c2
mov eax, edi
mov dword [esi + 0x48], 1
mov edi, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov byte [esp + 0x60], 1
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x70], eax
test ecx, ecx
je 0x46b204
mov eax, dword [ecx]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x78]
push edx
call dword [eax + 8]
jmp 0x46b4c6
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46b4c6
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x58], eax
mov byte [esp + 0x64], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x8c], eax
test ecx, ecx
je 0x46b204
mov eax, dword [ecx]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x94]
push edx
call dword [eax + 8]
jmp 0x46b4c6
mov edi, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [edi + 0x150]
jne 0x46b280
cmp dword [edi + 0x15c], 0
jbe 0x46b74b
mov eax, dword [edi + 0x158]
mov esi, dword [eax]
cmp esi, eax
je 0x46b74b
mov eax, dword [esi + 8]
mov ecx, 0x5526f0
push dword [esi + 8]
and eax, 0xffffff
mov dword [esp + 0x90], eax
lea eax, [esp + 0x78]
push eax
call fcn.00474a10
cmp dword [eax + 0x14], 8
jb 0x46b51a
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x88], 8
jb 0x46b53c
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46b5a2
push dword [esp + 0x8c]
lea eax, [esp + 0x40]
mov ecx, 0x5526f0
push eax
call fcn.00474960
mov dword [esp + 0xb0], 4
lea ecx, [esp + 0x90]
or ebx, 8
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489390
mov byte [esp + 0x13], 0
test al, al
je 0x46b5a7
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 8
je 0x46b5ce
and ebx, 0xfffffff7
cmp dword [esp + 0x50], 8
jb 0x46b5ce
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46b6e7
mov byte [esi + 0x4c], 1
mov ecx, 0x5526f0
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00474960
lea ecx, [esp + 0x24]
mov dword [esp + 0xb0], 5
call fcn.00489160
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
call fcn.00489390
test al, al
jne 0x46b641
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b63d
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
jmp 0x46b69c
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.004864e0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x1c]
push eax
push 0x479080
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b69c
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x24], edi
cmp dword [esi + 0x48], 0
jne 0x46b739
mov eax, edi
mov dword [esi + 0x48], 1
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov byte [esp + 0x60], 1
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x46b204
mov eax, dword [ecx]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x70]
push edx
call dword [eax + 8]
jmp 0x46b73d
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46b73d
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x6c], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x9c], eax
test ecx, ecx
je 0x46b204
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x70]
push edx
lea edx, [esp + 0xa4]
push edx
call dword [eax + 8]
jmp 0x46b73d
mov edi, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [edi + 0x158]
jne 0x46b4f1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004f14ca
mov esp, ebp
pop ebp
ret