Function at 0x40648f
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.0040c797
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.0040c865
test al, al
jne 0x40659e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 6
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.0040c772
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.0040c4d9
lea ecx, [ebp - 0x248]
call fcn.00404708
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040c4d9
mov edx, ebx
lea ecx, [ebp - 0x48]
call fcn.0040c2de
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov edi, ecx
call fcn.00404708
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c4d9
cmp ebx, 5
jne 0x40655f
mov ecx, dword [ebp + 8]
call fcn.004068b6
test al, al
je 0x406592
push 0xf
lea ecx, [ebp - 0x448]
call fcn.0040c772
mov edi, eax
mov ecx, edi
call fcn.00404708
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0040c4d9
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 4]
test esi, esi
lea edi, [eax + 0xc]
mov eax, esi
jne 0x406574
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [ebp - 0x248]
push 0
push ecx
push edi
push eax
call dword [0x442074]
lea ecx, [ebp + 0x10]
call fcn.0040c44f
jmp 0x4066d9
push dword [ebp + 8]
mov ecx, esi
call fcn.004047d3
jmp 0x406585
mov ecx, dword [0x41c078]
call fcn.0040a556
cmp ax, 0x500
jb 0x4066f8
xor eax, eax
and byte [ebp + 0x17], al
cmp word [ebx], 0x5c
jne 0x4065f6
cmp word [edi + 0xe], 0x5c
jne 0x4065f6
mov cx, word [edi + 0x12]
cmp cx, 0x3f
je 0x4065e1
cmp cx, 0x2e
je 0x4065db
mov byte [ebp + 0x17], 1
jmp 0x4065f6
cmp cx, 0x3f
jne 0x4065f6
cmp word [edi + 0x14], 0x5c
jne 0x4065f6
cmp word [edi + 0x16], 0x3a
jne 0x4065f6
and byte [ebp + 0x17], 0
push 4
pop eax
mov bl, byte [ebp + 0x17]
test bl, bl
jne 0x406631
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 [0x4422f8]
test al, 4
je 0x40662f
test al, 5
jne 0x406631
mov bl, 1
push dword [esi + 0x1dc]
lea ecx, [ebp - 0x40]
push dword [ebp + 0xc]
call fcn.0040f424
test bl, bl
jne 0x4066f0
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040f49f
test al, al
jne 0x4066f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4066f0
cmp byte [ebp + 0x17], bl
jne 0x4066f0
mov dword [ebp + 0xc], edi
inc dword [edi]
push 0xd
lea ecx, [ebp - 0x448]
call fcn.0040c772
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.0040c772
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4066af
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 4
push ebx
push edi
push eax
call dword [0x442074]
cmp eax, 6
jne 0x4066e8
push dword [ebp + 8]
mov ecx, esi
call fcn.004047d3
lea ecx, [ebp + 0xc]
call fcn.0040c44f
lea ecx, [ebp - 0x40]
call fcn.0040f446
lea ecx, [ebp - 0x28]
call fcn.0040c7bf
xor al, al
jmp 0x406876
lea ecx, [ebp + 0xc]
call fcn.0040c44f
lea ecx, [ebp - 0x40]
call fcn.0040f446
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp word [eax + 0xc], 0x5c
je 0x406750
cmp word [eax + 0xe], 0x3a
je 0x406750
mov eax, dword [0x41d878]
push 1
mov dword [ebp + 8], eax
push 0x178b
inc dword [eax]
lea ecx, [ebp + 8]
call fcn.0040b5c6
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0040687d
lea edi, [esi + 0x1d4]
push eax
mov ecx, edi
call fcn.0040c59c
lea ecx, [ebp + 0xc]
call fcn.0040c44f
lea ecx, [ebp + 8]
call fcn.0040c44f
jmp 0x40675e
lea edi, [esi + 0x1d4]
push ebx
mov ecx, edi
call fcn.0040c59c
cmp dword [ebp - 0x1c], 0
je 0x406794
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x110]
call fcn.004076e7
lea ecx, [esi + 0x1d8]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x406789
mov eax, dword [ebp - 0x14]
or eax, 0xf0f00000
mov dword [ecx], eax
cmp byte [ebp - 0xc], 0
jne 0x4067a8
mov eax, dword [ebp - 0x10]
jmp 0x4067ae
push dword [esi + 0xd0]
lea ecx, [esi + 0x24]
call fcn.004076e7
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
mov dword [esi + 0x1dc], eax
call fcn.0040b792
mov eax, dword [edi]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
inc dword [eax]
call fcn.0040b70d
mov eax, dword [eax]
add eax, 0xc
push eax
call dword [0x4422d8]
lea ecx, [ebp + 8]
call fcn.0040c44f
cmp byte [ebp + 0x10], 0
je 0x4067ed
push 0
mov ecx, esi
call fcn.004060c9
lea ebx, [esi + 0x130]
mov ecx, ebx
call fcn.004198d9
push 0
push 0xb
lea ecx, [ebp - 0x448]
call fcn.0040c772
push eax
lea ecx, [esi + 0x198]
call fcn.0040a8c0
mov ecx, dword [edi]
add ecx, 0xc
call fcn.0040b97d
mov dword [esi + 0x1cc], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [esi + 0x1d0], edx
call fcn.00419925
push 0
push str._1_1_
lea ecx, [esi + 0x198]
call fcn.0040a8c0
mov ecx, esi
call fcn.00405ed8
push edi
lea ecx, [esi + 0x24]
call fcn.00402d5f
test al, al
je 0x40686c
push 0x8000
push 0x40641a
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [ebp - 0x28]
call fcn.0040c7bf
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10