Function at 0x4066ba
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0040ca85
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea ebx, [edi + 0xc]
push ebx
call fcn.0040cb53
test al, al
jne 0x4067c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.0040ca60
lea eax, [ebp + 0xc]
push 1
mov dword [ebp + 0x10], edi
inc dword [edi]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0xc], 0xa
call fcn.0040c7b2
lea ecx, [ebp - 0x248]
call fcn.0040470b
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040c7b2
mov edx, ebx
lea ecx, [ebp - 0x48]
call fcn.0040c568
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov edi, ecx
call fcn.0040470b
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c7b2
cmp ebx, 5
jne 0x40678a
mov ecx, dword [ebp + 8]
call fcn.00406b1e
test al, al
je 0x4067bd
push 0xf
lea ecx, [ebp - 0x448]
call fcn.0040ca60
mov edi, eax
mov ecx, edi
call fcn.0040470b
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c7b2
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 4]
test esi, esi
lea edi, [eax + 0xc]
mov eax, esi
jne 0x40679f
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [ebp - 0x248]
push 0
push ecx
push edi
push eax
call dword [0x432090]
lea ecx, [ebp + 0x10]
call fcn.0040c728
jmp 0x406939
push dword [ebp + 8]
mov ecx, esi
call fcn.004047d6
jmp 0x4067b0
mov ecx, dword [0x41c078]
call fcn.0040a849
cmp ax, 0x500
jb 0x406958
push 0x5c
xor eax, eax
and byte [ebp + 0x17], al
pop edx
cmp word [ebx], dx
jne 0x406856
cmp word [edi + 0xe], dx
jne 0x406856
mov cx, word [edi + 0x10]
cmp cx, 0x3f
je 0x406801
cmp cx, 0x2e
jne 0x406852
cmp word [edi + 0x12], dx
jne 0x406856
mov cx, word [edi + 0x14]
test cx, cx
je 0x406820
cmp word [edi + 0x16], 0x3a
jne 0x406820
and byte [ebp + 0x17], 0
push 4
pop eax
jmp 0x406856
cmp word [edi + 0x1a], dx
jne 0x406856
cmp cx, 0x55
je 0x406832
cmp cx, 0x75
jne 0x406856
mov cx, word [edi + 0x16]
cmp cx, 0x4e
je 0x406842
cmp cx, 0x6e
jne 0x406856
mov cx, word [edi + 0x18]
cmp cx, 0x43
je 0x406852
cmp cx, 0x63
jne 0x406856
mov byte [ebp + 0x17], 1
mov bl, byte [ebp + 0x17]
test bl, bl
jne 0x406891
mov cx, word [edi + eax*2 + 0xc]
mov word [ebp - 8], cx
mov cx, word [edi + eax*2 + 0xe]
mov word [ebp - 6], cx
mov ax, word [edi + eax*2 + 0x10]
and word [ebp - 2], 0
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
call dword [0x432314]
test al, 4
je 0x40688f
test al, 5
jne 0x406891
mov bl, 1
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.0040f6e0
test bl, bl
jne 0x406950
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040f75b
test al, al
jne 0x406950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406950
cmp byte [ebp + 0x17], bl
jne 0x406950
mov dword [ebp + 0xc], edi
inc dword [edi]
push 0xd
lea ecx, [ebp - 0x448]
call fcn.0040ca60
push eax
lea ecx, [ebp + 0xc]
call fcn.004017c3
mov eax, dword [ebp + 0xc]
push 6
lea ecx, [ebp - 0x448]
lea edi, [eax + 0xc]
call fcn.0040ca60
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40690f
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 4
push ebx
push edi
push eax
call dword [0x432090]
cmp eax, 6
jne 0x406948
push dword [ebp + 8]
mov ecx, esi
call fcn.004047d6
lea ecx, [ebp + 0xc]
call fcn.0040c728
lea ecx, [ebp - 0x40]
call fcn.0040f702
lea ecx, [ebp - 0x28]
call fcn.0040caad
xor al, al
jmp 0x406ade
lea ecx, [ebp + 0xc]
call fcn.0040c728
lea ecx, [ebp - 0x40]
call fcn.0040f702
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov cx, word [eax + 0xc]
cmp cx, 0x5c
je 0x4069b8
test cx, cx
je 0x406973
cmp word [eax + 0xe], 0x3a
je 0x4069b8
mov eax, dword [0x41d878]
push 1
mov dword [ebp + 8], eax
push 0x178b
inc dword [eax]
lea ecx, [ebp + 8]
call fcn.0040b8be
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00406ae5
lea edi, [esi + 0x1d4]
push eax
mov ecx, edi
call fcn.0040c875
lea ecx, [ebp + 0xc]
call fcn.0040c728
lea ecx, [ebp + 8]
call fcn.0040c728
jmp 0x4069c6
lea edi, [esi + 0x1d4]
push ebx
mov ecx, edi
call fcn.0040c875
cmp dword [ebp - 0x1c], 0
je 0x4069fc
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x110]
call fcn.00407935
lea ecx, [esi + 0x1d8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x4069f1
mov eax, dword [ebp - 0x14]
or eax, 0xf0f00000
mov dword [ecx], eax
cmp byte [ebp - 0xc], 0
jne 0x406a10
mov eax, dword [ebp - 0x10]
jmp 0x406a16
push dword [esi + 0xd0]
lea ecx, [esi + 0x24]
call fcn.00407935
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
mov dword [esi + 0x1dc], eax
call fcn.0040ba8a
mov eax, dword [edi]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
inc dword [eax]
call fcn.0040ba05
mov eax, dword [eax]
add eax, 0xc
push eax
call dword [0x4322f4]
lea ecx, [ebp + 8]
call fcn.0040c728
cmp byte [ebp + 0x10], 0
je 0x406a55
push 0
mov ecx, esi
call fcn.004062f4
lea ebx, [esi + 0x130]
mov ecx, ebx
call fcn.00419df9
push 0
push 0xb
lea ecx, [ebp - 0x448]
call fcn.0040ca60
push eax
lea ecx, [esi + 0x198]
call fcn.0040abb3
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040bc75
mov dword [esi + 0x1cc], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [esi + 0x1d0], edx
call fcn.00419e45
push 0
push str._1_1_
lea ecx, [esi + 0x198]
call fcn.0040abb3
mov ecx, esi
call fcn.00406103
push edi
lea ecx, [esi + 0x24]
call fcn.00402d5f
test al, al
je 0x406ad4
push 0x8000
push 0x406645
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [ebp - 0x28]
call fcn.0040caad
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10