Function at 0x40674e
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.0040cc3a
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.0040cd08
test al, al
jne 0x40685d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.0040cc15
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.0040c963
lea ecx, [ebp - 0x248]
call fcn.00401f26
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040c963
mov edx, ebx
lea ecx, [ebp - 0x48]
call fcn.0040c719
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov edi, ecx
call fcn.00401f26
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c963
cmp ebx, 5
jne 0x40681e
mov ecx, dword [ebp + 8]
call fcn.00406bb2
test al, al
je 0x406851
push 0xf
lea ecx, [ebp - 0x448]
call fcn.0040cc15
mov edi, eax
mov ecx, edi
call fcn.00401f26
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c963
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 4]
test esi, esi
lea edi, [eax + 0xc]
mov eax, esi
jne 0x406833
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [ebp - 0x248]
push 0
push ecx
push edi
push eax
call dword [0x433094]
lea ecx, [ebp + 0x10]
call fcn.0040c8d9
jmp 0x4069cd
push dword [ebp + 8]
mov ecx, esi
call fcn.004047e7
jmp 0x406844
mov ecx, dword [0x41d078]
call fcn.0040a96f
cmp ax, 0x500
jb 0x4069ec
push 0x5c
xor eax, eax
and byte [ebp + 0x17], al
pop edx
cmp word [ebx], dx
jne 0x4068ea
cmp word [edi + 0xe], dx
jne 0x4068ea
mov cx, word [edi + 0x10]
cmp cx, 0x3f
je 0x406895
cmp cx, 0x2e
jne 0x4068e6
cmp word [edi + 0x12], dx
jne 0x4068ea
mov cx, word [edi + 0x14]
test cx, cx
je 0x4068b4
cmp word [edi + 0x16], 0x3a
jne 0x4068b4
and byte [ebp + 0x17], 0
push 4
pop eax
jmp 0x4068ea
cmp word [edi + 0x1a], dx
jne 0x4068ea
cmp cx, 0x55
je 0x4068c6
cmp cx, 0x75
jne 0x4068ea
mov cx, word [edi + 0x16]
cmp cx, 0x4e
je 0x4068d6
cmp cx, 0x6e
jne 0x4068ea
mov cx, word [edi + 0x18]
cmp cx, 0x43
je 0x4068e6
cmp cx, 0x63
jne 0x4068ea
mov byte [ebp + 0x17], 1
mov bl, byte [ebp + 0x17]
test bl, bl
jne 0x406925
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 [0x433318]
test al, 4
je 0x406923
test al, 5
jne 0x406925
mov bl, 1
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.0040f887
test bl, bl
jne 0x4069e4
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040f902
test al, al
jne 0x4069e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4069e4
cmp byte [ebp + 0x17], bl
jne 0x4069e4
mov dword [ebp + 0xc], edi
inc dword [edi]
push 0xd
lea ecx, [ebp - 0x448]
call fcn.0040cc15
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.0040cc15
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4069a3
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 4
push ebx
push edi
push eax
call dword [0x433094]
cmp eax, 6
jne 0x4069dc
push dword [ebp + 8]
mov ecx, esi
call fcn.004047e7
lea ecx, [ebp + 0xc]
call fcn.0040c8d9
lea ecx, [ebp - 0x40]
call fcn.0040f8a9
lea ecx, [ebp - 0x28]
call fcn.0040cc62
xor al, al
jmp 0x406b72
lea ecx, [ebp + 0xc]
call fcn.0040c8d9
lea ecx, [ebp - 0x40]
call fcn.0040f8a9
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov cx, word [eax + 0xc]
cmp cx, 0x5c
je 0x406a4c
test cx, cx
je 0x406a07
cmp word [eax + 0xe], 0x3a
je 0x406a4c
mov eax, dword [0x41e888]
push 1
mov dword [ebp + 8], eax
push 0x178b
inc dword [eax]
lea ecx, [ebp + 8]
call fcn.0040ba6f
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00406b79
lea edi, [esi + 0x1d4]
push eax
mov ecx, edi
call fcn.0040ca26
lea ecx, [ebp + 0xc]
call fcn.0040c8d9
lea ecx, [ebp + 8]
call fcn.0040c8d9
jmp 0x406a5a
lea edi, [esi + 0x1d4]
push ebx
mov ecx, edi
call fcn.0040ca26
cmp dword [ebp - 0x1c], 0
je 0x406a90
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x110]
call fcn.00407a3a
lea ecx, [esi + 0x1d8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x406a85
mov eax, dword [ebp - 0x14]
or eax, 0xf0f00000
mov dword [ecx], eax
cmp byte [ebp - 0xc], 0
jne 0x406aa4
mov eax, dword [ebp - 0x10]
jmp 0x406aaa
push dword [esi + 0xd0]
lea ecx, [esi + 0x24]
call fcn.00407a3a
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
mov dword [esi + 0x1dc], eax
call fcn.0040bc3b
mov eax, dword [edi]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
inc dword [eax]
call fcn.0040bbb6
mov eax, dword [eax]
add eax, 0xc
push eax
call dword [0x4332f8]
lea ecx, [ebp + 8]
call fcn.0040c8d9
cmp byte [ebp + 0x10], 0
je 0x406ae9
push 0
mov ecx, esi
call fcn.00406388
lea ebx, [esi + 0x130]
mov ecx, ebx
call fcn.0041a089
push 0
push 0xb
lea ecx, [ebp - 0x448]
call fcn.0040cc15
push eax
lea ecx, [esi + 0x198]
call fcn.0040ad3e
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040be26
mov dword [esi + 0x1cc], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [esi + 0x1d0], edx
call fcn.0041a0d5
push 0
push str._1_1_
lea ecx, [esi + 0x198]
call fcn.0040ad3e
mov ecx, esi
call fcn.00406197
push edi
lea ecx, [esi + 0x24]
call fcn.00402d74
test al, al
je 0x406b68
push 0x8000
push 0x4066d9
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [ebp - 0x28]
call fcn.0040cc62
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10