Function at 0x46c798
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x348], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ca3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x115], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x46c30c]
call fcn.00403648
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], ebx
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [eax + 0x20], edx
push 0xfffffffffffffff0
push ebx
call sub.user32.dll_GetWindowLongA
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x24], eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_GetWindowLongA
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], eax
push 0xfffffffffffffff8
push ebx
call sub.user32.dll_GetWindowLongA
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
push 0x64
lea eax, [ebp - 0x115]
push eax
push ebx
call sub.user32.dll_GetClassNameA
mov eax, dword [ebp - 0x14]
add eax, 0x14
lea edx, [ebp - 0x115]
mov ecx, 0x101
call fcn.0040466c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x46c875
mov esi, 0x46ca48
lea edi, [ebp - 0x115]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x46c887
push 0xff
lea edx, [ebp - 0x115]
push edx
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x348]
lea edx, [ebp - 0x115]
mov ecx, 0x101
call fcn.0040466c
cmp dword [ebp - 0x348], 0
jne 0x46c8b9
mov esi, 0x46cb4c
lea edi, [ebp - 0x115]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
add eax, 0x10
lea edx, [ebp - 0x115]
mov ecx, 0x101
call fcn.0040466c
push 0xff
lea eax, [ebp - 0x115]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
xor eax, eax
push ebp
push 0x46c9eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, 2
call fcn.0046c230
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46c9d4
mov dword [ebp - 0x23d], 0x128
lea edx, [ebp - 0x23d]
mov eax, dword [ebp - 0xc]
call fcn.0046c250
test eax, eax
je 0x46c9d4
mov eax, dword [ebp - 0x235]
cmp eax, dword [ebp - 8]
jne 0x46c96f
mov eax, dword [ebp - 0x14]
add eax, 0x18
lea edx, [ebp - 0x219]
mov ecx, 0x104
call fcn.0040466c
jmp 0x46c981
mov eax, dword [ebp - 0x235]
cmp eax, dword [ebp - 8]
jne 0x46c96f
mov eax, dword [ebp - 0x14]
add eax, 0x18
lea edx, [ebp - 0x219]
mov ecx, 0x104
call fcn.0040466c
jmp 0x46c981
lea edx, [ebp - 0x23d]
mov eax, dword [ebp - 0xc]
call fcn.0046c270
test eax, eax
jne 0x46c94c
mov word [ebp - 0xe], 0
lea edx, [ebp - 0x219]
lea eax, [ebp - 0x342]
call fcn.00408fd4
push 0
lea eax, [ebp - 0x219]
push eax
mov eax, dword [0x48a718]
push eax
call sub.shell32.dll_ExtractIconA
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], ebx
test ebx, ebx
jne 0x46c9d4
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x342]
push eax
mov eax, dword [0x48a718]
push eax
call sub.shell32.dll_ExtractAssociatedIconA
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c9f2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret