Function at 0x10021490
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067e1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10088574]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x10021517
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021517
mov dword [ebp - 4], 0
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
mov eax, dword [0x100896b8]
test eax, eax
je 0x10021534
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x10021584
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021584
mov dword [ebp - 4], 1
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
mov edi, dword [0x100896b4]
mov ebx, 0x100896b8
test edi, edi
je 0x1002161e
mov edx, str.setGraphicsWindow_by_injectedWindow:
mov ecx, 0x10088668
call fcn.1000be60
push edi
mov ecx, eax
call fcn.1001a5e0
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
jne 0x1002161e
test eax, 0xc0000000
je 0x100215cc
test eax, 0x14000000
je 0x1002161e
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x1002161c
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x1002161c
mov dword [ebp - 4], 2
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
xchg dword [ebx], edi
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x1002166e
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x1002166e
mov dword [ebp - 4], 3
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
mov eax, dword [0x100896b8]
test eax, eax
jne 0x1002171b
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x10021780
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x10], 0
je 0x1002171b
mov edx, str.gg_overlay
mov ecx, 0x10088668
call fcn.1000be60
mov edx, str.setGraphicsWindow_by_enum:
mov ecx, eax
call fcn.1000be60
push dword [ebp - 0x10]
mov ecx, eax
call fcn.1001a5e0
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x10021716
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021716
mov dword [ebp - 4], 4
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100895fc
call fcn.10041545
add esp, 4
mov eax, dword [ebp - 0x10]
xchg dword [ebx], eax
mov eax, dword [0x100895fc]
cmp eax, dword [esi + 4]
jle 0x10021764
push 0x100895fc
call fcn.1004158f
add esp, 4
cmp dword [0x100895fc], 0xffffffff
jne 0x10021764
mov dword [ebp - 4], 5
call fcn.100183a0
push 0x1006b7e0
call fcn.10041aaf
add esp, 4
push 0x100895fc
call fcn.10041545
add esp, 4
mov eax, dword [0x100896b8]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret