Function at 0x53cb6c
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x53cb75
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [0x59046c]
xor eax, eax
push ebp
push 0x53d187
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x53cbb4
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.00405538
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
test eax, eax
jle 0x53cbee
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov al, byte [eax]
and eax, 0xff
bt dword [ebx], eax
jae 0x53cba2
jmp 0x53cbee
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, 1
call fcn.00405538
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
test eax, eax
jle 0x53cc19
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov al, byte [edx + eax - 1]
and eax, 0xff
bt dword [ebx], eax
jae 0x53cbd5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
test eax, eax
jg 0x53cc31
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x1c], eax
jmp 0x53cc36
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 9], 0
jne 0x53cd94
cmp dword [ebp - 0x1c], 0
ja 0x53cc5b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405498
push eax
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
ja 0x53cc76
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405498
push eax
call sub.user32.dll_FindWindowA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
ja 0x53cf6b
push 0
call sub.user32.dll_GetTopWindow
mov esi, eax
push 4
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x53cc99
mov esi, ebx
test ebx, ebx
jne 0x53cc89
push 0
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
mov esi, ebx
mov eax, 0xfa
call fcn.0040c580
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push 0x53658c
mov eax, dword [ebp - 4]
call fcn.00425d90
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x104544]
mov byte [ebp - 0x21], al
push 0xf0
push edi
push esi
call sub.user32.dll_GetWindowTextA
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x53cd23
mov al, byte [ebp - 0x21]
or al, bl
je 0x53cd23
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405298
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405498
mov edx, eax
mov eax, edi
pop ecx
call fcn.0040b138
test eax, eax
jne 0x53cd23
mov dword [ebp - 0x1c], esi
jmp 0x53cd88
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x53cd70
or bl, byte [ebp - 0x21]
je 0x53cd70
lea eax, [ebp - 0x150]
mov edx, edi
call fcn.004051d0
mov eax, dword [ebp - 0x150]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405498
mov edx, eax
lea eax, [ebp - 0x154]
call fcn.004051d0
mov eax, dword [ebp - 0x154]
pop edx
call fcn.004055dc
test eax, eax
jle 0x53cd70
mov dword [ebp - 0x1c], esi
push 2
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x53cd80
mov esi, ebx
test ebx, ebx
jne 0x53ccd2
mov eax, edi
call fcn.0040c5cc
jmp 0x53cf6b
mov eax, dword [0x59051c]
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
push 4
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x53cdae
mov esi, ebx
test ebx, ebx
jne 0x53cd9e
push 0
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
mov esi, ebx
mov eax, 0xfa
call fcn.0040c580
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push 0x53658c
mov eax, dword [ebp - 4]
call fcn.00425d90
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x104544]
mov byte [ebp - 0x21], al
push 0xf0
push edi
push esi
call sub.user32.dll_GetWindowTextA
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x53cf4c
or bl, byte [ebp - 0x21]
je 0x53cf4c
lea eax, [ebp - 0x158]
mov edx, edi
call fcn.004051d0
mov eax, dword [ebp - 0x158]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405498
mov edx, eax
lea eax, [ebp - 0x15c]
call fcn.004051d0
mov eax, dword [ebp - 0x15c]
pop edx
call fcn.004055dc
test eax, eax
jle 0x53cf4c
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.004051d0
lea eax, [ebp - 0x160]
mov edx, edi
call fcn.004051d0
mov edx, dword [ebp - 0x160]
mov eax, 0x53d1a0
call fcn.004055dc
test eax, eax
jg 0x53ceb5
lea eax, [ebp - 0x164]
mov edx, edi
call fcn.004051d0
mov edx, dword [ebp - 0x164]
mov eax, 0x53d1ac
call fcn.004055dc
test eax, eax
jg 0x53ceb5
cmp byte [edi], 0x22
je 0x53ceb5
mov eax, dword [ebp - 0x14]
call fcn.00405298
cmp byte [edi + eax - 1], 0x22
jne 0x53cf05
push dword [ebp - 0x10]
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x168]
call fcn.0040b668
push dword [ebp - 0x168]
push 0x53d1a0
push 0x53d1b8
lea eax, [ebp - 0x16c]
mov edx, edi
call fcn.004051d0
push dword [ebp - 0x16c]
push 0x53d1b8
push 0x53d1ac
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.00405358
jmp 0x53cf49
push dword [ebp - 0x10]
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x170]
call fcn.0040b668
push dword [ebp - 0x170]
push 0x53d1a0
lea eax, [ebp - 0x174]
mov edx, edi
call fcn.004051d0
push dword [ebp - 0x174]
push 0x53d1ac
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00405358
mov dword [ebp - 0x1c], esi
push 2
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x53cf5c
mov esi, ebx
test ebx, ebx
jne 0x53cde7
mov eax, edi
call fcn.0040c5cc
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x1c], 0
ja 0x53d0a5
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040aee8
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.0040502c
xor edx, edx
mov eax, 2
call fcn.004d2bf0
mov ebx, eax
mov dword [ebp - 0x149], 0x128
lea edx, [ebp - 0x149]
mov eax, ebx
call fcn.004d2c10
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x53d095
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405248
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.0040aee8
mov eax, dword [ebp - 0x17c]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.004053e4
jne 0x53d07f
cmp byte [ebp - 9], 0
jne 0x53d02e
mov eax, dword [ebp - 0x141]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x184]
call fcn.0040b668
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 8]
call fcn.0040502c
jmp 0x53d09f
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x141]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x188]
call fcn.0040b668
push dword [ebp - 0x188]
push 0x53d1a0
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x125]
mov ecx, 0x104
call fcn.00405248
push dword [ebp - 0x18c]
push 0x53d1ac
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00405358
lea edx, [ebp - 0x149]
mov eax, ebx
call fcn.004d2c30
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x53cfca
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 9], 0
jne 0x53d151
cmp dword [ebp - 0x1c], 0
ja 0x53d12f
xor eax, eax
push ebp
push 0x53d116
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x43e8], edx
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040b73c
test al, al
je 0x53d10a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x43ec], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43d8]
push eax
push 0x53cb24
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x43e8]
jmp 0x53d10c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53d122
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 0
jbe 0x53d12f
cmp byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x190]
call fcn.0040b668
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 8]
call fcn.0040502c
jmp 0x53d15c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040502c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d18e
lea eax, [ebp - 0x190]
mov edx, 0x11
call fcn.00404ffc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404ffc
ret