Function at 0x1008df40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cbe5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
cmp byte [0x1012b308], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x3c], esi
jne 0x1008e010
push 0x104
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.100a3330
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.100a3e10
add esp, 8
test eax, eax
jne 0x1008dfea
lea eax, [ebp - 0x140]
push str.Spelunky.exe
push eax
call fcn.100a3e10
add esp, 8
test eax, eax
jne 0x1008dfea
call fcn.1008d400
test al, al
je 0x1008e009
push str.Delaying_startup_device_notifications_for_Unity_n
call fcn.10081660
add esp, 4
push 0x1388
jmp 0x1008e003
lea eax, [ebp - 0x140]
push eax
push str.Delaying_startup_device_notifications_for__s_n
call fcn.10081660
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x1012b308], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1008cea0
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 0x1008e233
jmp 0x1008e060
cmp byte [esi + 0x2fda], 0
jne 0x1008e230
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 0x1008e0af
mov dword [esi + 0x2fe8], eax
jmp 0x1008e0b5
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 0x1008e0f0
cmp ecx, 0x3fffffff
ja 0x1008e28a
push ecx
lea ecx, [ebp - 0x24]
call fcn.1008ebd0
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 0x1008e13e
add eax, 0x14
cmp edi, ebx
je 0x1008e114
mov eax, dword [eax]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x20], edi
jmp 0x1008e124
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.1005de50
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.1004fcc0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x1008e101
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 0x1008e163
mov ebx, dword [esi + 0x3004]
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x1008e163
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
mov dword [ebp - 0x10], eax
push str.Sending_device_notification_n
call fcn.10081660
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 0x1008e1d3
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 0x1008e1b9
push dword [ebp - 0x30]
push ebx
push 0x219
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x1008e1c9
push dword [ebp - 0x34]
push ebx
push 0x219
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esi, 4
cmp esi, edi
jne 0x1008e190
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1008e213
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 0x1008e20d
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x1008e213
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 0x1008e060
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 0x1008e274
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x1008e26a
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008e285
push ebx
push edi
call fcn.100a1a2e
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.100b0a3d
call fcn.10052af0
int3