Function at 0x40c580
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d803c
push eax
mov dword fs:[0], esp
sub esp, 0x5b4
lea eax, [esp + 0x5c4]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0040a1e0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x40c5be
xor eax, eax
jmp 0x40c8fe
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push 0x64
push edx
push eax
call fcn.0040bc50
mov dword [esp + 0x20], eax
mov eax, dword [0x6646f8]
add esp, 0xc
cmp eax, ebx
je 0x40c738
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3be]
mov word [esp + 0x3bc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1b6]
mov word [esp + 0x1b4], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3bc]
push 0x103
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x1b4]
push 0x103
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [0x6646f8], ebx
je 0x40c738
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004a8530
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x5d0], ebx
call fcn.0045a720
mov edi, eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x5d0], 1
call fcn.0045a830
mov ebp, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x5d4]
push eax
push ecx
mov byte [esp + 0x5d4], 2
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edx, dword [ebp]
push eax
lea eax, [esp + 0x1bc]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c8]
push eax
mov eax, dword [esp + 0x5e4]
push ecx
push edx
push esi
push eax
push str.EnumWindowsProc_UserKey_hwnd__08x__hWndChild__08x__dwProcId__d____s___s___s____d____s_
push 0x62dbe4
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5cc], 1
call fcn.0045b0a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x5cc], bl
call fcn.0045b0a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], 0xffffffff
call fcn.005c8667
cmp dword [esp + 0x14], ebx
je 0x40c8f9
lea ecx, [esp + 0x24]
push ecx
call fcn.00441ab0
add esp, 4
test eax, eax
jbe 0x40c8f9
mov edx, dword [esp + 0x5d4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40c7fb
lea eax, [esp + 0x24]
push eax
call fcn.00479410
add esp, 4
test eax, eax
jne 0x40c7fb
mov edx, dword [esp + 0x10]
mov ecx, 0x32
lea edi, [esp + 0x24]
push 0x64
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.0040bfc0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x15c]
push 0x64
push eax
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
push ecx
call fcn.004242a0
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x5d8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c8fe
or ebp, 0xffffffff
mov edi, 0x66506c
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40c82b
call fcn.0047e1d0
push eax
push str._sExplorer.exe
push 0x103
push 0x66506c
call fcn.00442748
add esp, 0x10
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004a8530
mov edx, dword [esp + 0x1c]
push 0x66506c
push edx
mov dword [esp + 0x5dc], 3
call fcn.004420bf
add esp, 0x10
test eax, eax
jne 0x40c8e9
mov ecx, 0x32
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0x64
push eax
push ecx
call fcn.0040bfc0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xf9]
mov byte [esp + 0xf8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xf8]
push 0x64
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.004242a0
lea edi, [esp + 0x108]
mov ecx, ebp
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x5cc], ebp
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x5d8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005c8667
xor eax, eax
jmp 0x40c8fe
lea ecx, [esp + 0x14]
mov dword [esp + 0x5cc], ebp
call fcn.005c8667
mov eax, 1
mov ecx, dword [esp + 0x5c4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c0
ret 8