Function at 0x40a6a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6489a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov esi, dword [edx - 0xc]
mov dword [ebp - 0x20], 0x80004005
cmp esi, ebx
jge 0x40a6f8
push 0x80070057
call fcn.00401090
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40a715
push esi
lea ecx, [ebp + 8]
call fcn.00402b80
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.00522745
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40a6ee
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
push 0x40a570
mov word [edx + esi*2], cx
call dword [sym.imp.USER32.dll_EnumWindows]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x6ccb54
call fcn.004023d0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00402be0
add eax, 0x10
lea ecx, [ebp - 0x38]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 1
call fcn.004178d0
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x44]
je 0x40a9a3
mov dword [ebp - 0x14], ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 4
mov edi, dword [eax]
push edx
call fcn.0040a200
add esp, 4
mov dword [ebp - 0x20], eax
cmp eax, ebx
jge 0x40a7cd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40a998
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
add eax, 4
jmp 0x40a786
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40a998
mov dword [ebp - 0x18], ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40a7f4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40a7ae
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0xa0]
call eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push ecx
cmp eax, ebx
jge 0x40a827
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40a985
lea ecx, [ebp - 0x1c]
call fcn.004023d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.0040bb20
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
je 0x40a86e
mov eax, dword [esi]
cmp eax, ebx
je 0x40a866
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
jl 0x40a866
push eax
push ecx
call fcn.00522032
add esp, 8
cmp eax, ebx
je 0x40a866
sub eax, dword [ebp - 0x1c]
sar eax, 1
jns 0x40a8a0
add esi, 4
cmp esi, dword [ebp - 0x34]
jne 0x40a843
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40a985
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40a8f0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40a910
mov ecx, dword [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00406e30
mov edx, dword [ebp - 0x38]
push edx
call fcn.00419f98
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp eax, ebx
je 0x40a929
push eax
call fcn.00419f98
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40a998
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x24]
add eax, 4
jmp 0x40a786
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x40a9e8
mov eax, dword [ebp - 0x34]
mov edi, eax
cmp esi, eax
je 0x40a9df
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x40a9b7
mov esi, dword [ebp - 0x38]
push esi
call fcn.00419f98
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp eax, ebx
je 0x40aa01
push eax
call fcn.00419f98
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret