Function at 0x10012490
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005a750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
xor bl, bl
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1001250f
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100124df
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x38], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
call fcn.10016500
cmp dword [eax + 0x14], 8
jb 0x100124f7
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10012511
mov dword [esi], edi
mov bl, 1
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100171b0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x10014840
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x14], 0
mov ecx, 1
mov edi, dword [ebp - 0x18]
movzx eax, bl
cmovne eax, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov esi, dword [eax]
cmp esi, eax
je 0x1001260e
lea esp, [esp]
mov eax, dword [edi + 4]
mov ecx, edi
cmp byte [eax + 0xd], 0
jne 0x100125e4
mov edx, dword [esi + 0x10]
mov edi, edi
cmp dword [eax + 0x10], edx
jae 0x1001258a
mov eax, dword [eax + 8]
jmp 0x1001258e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10012580
cmp ecx, edi
je 0x100125e4
cmp edx, dword [ecx + 0x10]
jb 0x100125e4
cmp byte [esi + 0xd], 0
jne 0x10012603
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100125c2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10012603
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100125b6
jmp 0x10012603
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100125e0
jmp 0x100125d0
cmp esi, dword [eax + 8]
jne 0x100125e0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100125d0
mov esi, eax
jmp 0x10012603
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100125f1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.10016620
mov edi, dword [ebp - 0x18]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x20]
cmp esi, dword [ecx]
jne 0x10012570
mov esi, dword [edi]
cmp esi, edi
je 0x100126c7
mov eax, dword [ecx]
mov edx, eax
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x10012644
mov edi, edi
cmp dword [ecx + 0x10], ebx
jae 0x1001263a
mov ecx, dword [ecx + 8]
jmp 0x1001263e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10012630
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
cmp edx, ecx
je 0x1001265d
cmp ebx, dword [edx + 0x10]
jb 0x1001265d
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
jmp 0x10012663
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
cmp dword [ecx], eax
jne 0x10012679
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
call fcn.100165a0
mov dword [eax], 0
cmp byte [esi + 0xd], 0
jne 0x100126b9
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1001269e
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100126b9
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10012692
jmp 0x100126b9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100126b7
cmp esi, dword [eax + 8]
jne 0x100126b7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100126a7
mov esi, eax
mov ecx, dword [ebp - 0x20]
cmp esi, edi
jne 0x10012618
mov edi, dword [ebp - 0x18]
push edi
push dword [edi]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10016c00
push dword [ebp - 0x18]
call fcn.1001a916
mov al, byte [ebp - 0x28]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a15e
mov esp, ebp
pop ebp
ret