Function at 0x10091130
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cfced
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
cmp byte [0x101323a8], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x3c], esi
jne 0x10091200
push 0x104
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.100a7070
add esp, 0xc
lea eax, [ebp - 0x140]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x140]
push str.DMC_DevilMayCry.exe
push eax
call fcn.100a7b50
add esp, 8
test eax, eax
jne 0x100911da
lea eax, [ebp - 0x140]
push str.Spelunky.exe
push eax
call fcn.100a7b50
add esp, 8
test eax, eax
jne 0x100911da
call fcn.100905f0
test al, al
je 0x100911f9
push str.Delaying_startup_device_notifications_for_Unity_n
call fcn.10084630
add esp, 4
push 0x1388
jmp 0x100911f3
lea eax, [ebp - 0x140]
push eax
push str.Delaying_startup_device_notifications_for__s_n
call fcn.10084630
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x101323a8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10090090
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [esi + 0x2fc0]
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [esi + 0x2fec]
mov dword [ebp - 4], ebx
test edx, edx
je 0x10091423
jmp 0x10091250
cmp byte [esi + 0x2fda], 0
jne 0x10091420
mov ecx, dword [esi + 0x2fe4]
mov eax, dword [esi + 0x2fe0]
dec ecx
and ecx, dword [esi + 0x2fe8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [edx - 1]
mov dword [ebp - 0x30], ecx
mov dword [esi + 0x2fec], eax
test eax, eax
jne 0x1009129f
mov dword [esi + 0x2fe8], eax
jmp 0x100912a5
inc dword [esi + 0x2fe8]
mov edi, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [esi + 0x2ff4]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x20], edi
cmp ecx, eax
jbe 0x100912e0
cmp ecx, 0x3fffffff
ja 0x1009147a
push ecx
lea ecx, [ebp - 0x24]
call fcn.10091dc0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x2ff0]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp byte [eax + 0xd], 0
jne 0x1009132e
add eax, 0x14
cmp edi, ebx
je 0x10091304
mov eax, dword [eax]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x20], edi
jmp 0x10091314
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.10060740
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.10052010
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x100912f1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x3001], bl
je 0x10091353
mov ebx, dword [esi + 0x3004]
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x10091353
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
mov dword [ebp - 0x10], eax
push str.Sending_device_notification_n
call fcn.10084630
add esp, 4
mov byte [esi + 0x2fd8], 1
lea eax, [esi + 0x2fc0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
cmp esi, edi
je 0x100913c3
mov ebx, dword [ebp - 0x28]
mov edi, edi
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov ecx, dword [esi]
push 0
push 0x1388
push 0
test eax, eax
je 0x100913a9
push dword [ebp - 0x30]
push ebx
push 0x219
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x100913b9
push dword [ebp - 0x34]
push ebx
push 0x219
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esi, 4
cmp esi, edi
jne 0x10091380
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10091403
mov esi, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [ebp - 0x28], 0x8000
push esi
setne bl
inc ebx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push 0
push 0x1388
push 0
push dword [ebp - 0x2c]
push ebx
push 0xfe
push esi
test eax, eax
je 0x100913fd
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x10091403
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x18]
mov edx, dword [esi + 0x2fec]
test edx, edx
jne 0x10091250
mov edi, dword [ebp - 0x14]
lea eax, [esi + 0x2fc0]
mov byte [esi + 0x2fd9], 0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10091464
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x1009145a
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10091475
push ebx
push edi
call fcn.100a576e
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.100b477d
call fcn.10054e60
int3