Function at 0x46a980
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 0x4fd2cc
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x547320]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x547320]
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.00489300
cmp dword [edi + 0x144], ebx
jbe 0x46ab7f
mov eax, dword [edi + 0x140]
mov esi, dword [eax]
cmp esi, eax
je 0x46ab7f
jmp 0x46aa10
push dword [esi + 8]
lea eax, [esp + 0x28]
mov ecx, 0x5534d0
push eax
call fcn.00474940
cmp dword [eax + 0x14], 8
jb 0x46aa2a
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x38], 8
jb 0x46aa49
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 0x46aaa5
push dword [esi + 8]
lea eax, [esp + 0x78]
mov ecx, 0x5534d0
push eax
call fcn.00474890
mov dword [esp + 0xb0], 0
lea ecx, [esp + 0x90]
or ebx, 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489530
mov byte [esp + 0x13], 0
test al, al
je 0x46aaaa
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 1
je 0x46aad4
and ebx, 0xfffffffe
cmp dword [esp + 0x88], 8
jb 0x46aad4
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46ab27
mov byte [esi + 0x4c], 1
mov ecx, 0x5534d0
push dword [esi + 8]
call fcn.00479090
mov dword [esi + 0x24], eax
cmp dword [esi + 0x48], 0
jne 0x46ab71
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 0x46acc4
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x78]
jmp 0x46ab6b
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46ab71
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 0x46acc4
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 0x46aa10
cmp dword [edi + 0x14c], 0
jbe 0x46ad22
mov eax, dword [edi + 0x148]
mov esi, dword [eax]
cmp esi, eax
je 0x46ad22
lea esp, [esp]
push dword [esi + 8]
mov edi, dword [esi + 8]
lea eax, [esp + 0x28]
push eax
mov ecx, 0x553590
and edi, 0xffffff
call fcn.00474940
cmp dword [eax + 0x14], 8
jb 0x46abc3
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x38], 8
jb 0x46abe2
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 0x46ac3c
push edi
lea eax, [esp + 0x78]
mov ecx, 0x553590
push eax
call fcn.00474890
mov dword [esp + 0xb0], 1
lea ecx, [esp + 0x90]
or ebx, 2
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489530
mov byte [esp + 0x13], 0
test al, al
je 0x46ac41
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 2
je 0x46ac6b
and ebx, 0xfffffffd
cmp dword [esp + 0x88], 8
jb 0x46ac6b
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46acca
mov byte [esi + 0x4c], 1
mov ecx, 0x553590
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
call fcn.00479090
mov edi, dword [esp + 0x14]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x48], 0
jne 0x46ad14
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 0x46acc4
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x70]
jmp 0x46ad0e
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 0x46ad14
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 0x46acc4
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 0x46aba0
cmp dword [edi + 0x154], 0
jbe 0x46af94
mov eax, dword [edi + 0x150]
mov esi, dword [eax]
cmp esi, eax
je 0x46af94
nop
mov eax, dword [esi + 8]
mov ecx, 0x553650
push dword [esi + 8]
and eax, 0xffffff
mov dword [esp + 0x58], eax
lea eax, [esp + 0x78]
push eax
call fcn.00474940
cmp dword [eax + 0x14], 8
jb 0x46ad66
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x88], 8
jb 0x46ad88
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 0x46adeb
push dword [esp + 0x54]
lea eax, [esp + 0x40]
mov ecx, 0x553650
push eax
call fcn.00474890
mov dword [esp + 0xb0], 2
lea ecx, [esp + 0x90]
or ebx, 4
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489530
mov byte [esp + 0x13], 0
test al, al
je 0x46adf0
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 4
je 0x46ae17
and ebx, 0xfffffffb
cmp dword [esp + 0x50], 8
jb 0x46ae17
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46af30
mov byte [esi + 0x4c], 1
mov ecx, 0x553650
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00474890
lea ecx, [esp + 0x24]
mov dword [esp + 0xb0], 3
call fcn.00489300
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
call fcn.00489530
test al, al
jne 0x46ae8a
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46ae86
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
jmp 0x46aee5
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.004863c0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x1c]
push eax
push 0x478f70
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46aee5
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 0x46af82
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 0x46acc4
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 0x46af86
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46af86
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 0x46acc4
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 0x46af86
mov edi, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [edi + 0x150]
jne 0x46ad40
cmp dword [edi + 0x15c], 0
jbe 0x46b20b
mov eax, dword [edi + 0x158]
mov esi, dword [eax]
cmp esi, eax
je 0x46b20b
mov eax, dword [esi + 8]
mov ecx, 0x553710
push dword [esi + 8]
and eax, 0xffffff
mov dword [esp + 0x90], eax
lea eax, [esp + 0x78]
push eax
call fcn.00474940
cmp dword [eax + 0x14], 8
jb 0x46afda
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [esp + 0x88], 8
jb 0x46affc
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 0x46b062
push dword [esp + 0x8c]
lea eax, [esp + 0x40]
mov ecx, 0x553710
push eax
call fcn.00474890
mov dword [esp + 0xb0], 4
lea ecx, [esp + 0x90]
or ebx, 8
push eax
mov dword [esp + 0x1c], ebx
call fcn.00489530
mov byte [esp + 0x13], 0
test al, al
je 0x46b067
mov byte [esp + 0x13], 1
mov dword [esp + 0xb0], 0xffffffff
test bl, 8
je 0x46b08e
and ebx, 0xfffffff7
cmp dword [esp + 0x50], 8
jb 0x46b08e
push dword [esp + 0x3c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46b1a7
mov byte [esi + 0x4c], 1
mov ecx, 0x553710
mov eax, dword [esi + 8]
and eax, 0xffffff
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00474890
lea ecx, [esp + 0x24]
mov dword [esp + 0xb0], 5
call fcn.00489300
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
call fcn.00489530
test al, al
jne 0x46b101
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b0fd
push dword [esp + 0x74]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edi, edi
jmp 0x46b15c
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.004863c0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x1c]
push eax
push 0x478f70
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x46b15c
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 0x46b1f9
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 0x46acc4
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 0x46b1fd
mov byte [esi + 0x4c], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x48], 0
je 0x46b1fd
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 0x46acc4
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 0x46b1fd
mov edi, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [edi + 0x158]
jne 0x46afb1
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.004f203a
mov esp, ebp
pop ebp
ret