Function at 0x4f32a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b63b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [0x5c2c24], edi
jne 0x4f32e9
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x5c2c24], 1
mov eax, dword [0x5c2c2c]
cmp eax, edi
je 0x4f3308
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f33d8
mov eax, dword [0x5c2c2c]
push eax
call fcn.004808a0
add esp, 4
call fcn.004f2830
push 4
call fcn.00480850
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4f3337
mov dword [esi], edi
call fcn.004f2830
mov eax, esi
jmp 0x4f3339
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5c2c2c], eax
mov eax, 0xc8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [0x5c2d00]
mov edx, dword [ebp - 0x14]
push edi
push ecx
mov ecx, dword [ebp - 0x20]
push edi
mov esi, dword [0x5c2c2c]
push eax
mov eax, dword [ebp - 0x1c]
sub edx, eax
push edx
mov edx, dword [ebp - 0x18]
sub edx, ecx
push edx
push eax
push ecx
push 0x80cc0000
push edi
push str.AtlAxWin100
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x5c2c2c]
push edi
push 0x580b0c
push edi
push edi
push edi
push str.8856F961_340A_11D0_A96B_00C04FD705A2
mov dword [esi], eax
call fcn.004f1400
mov eax, dword [0x5c2c2c]
mov eax, dword [eax]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [0x5c2c2c]
mov edx, dword [ecx]
push 0x4dd560
push 0xfffffffffffffffc
push edx
mov dword [0x5c2c3c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [0x5c2c2c], edi
je 0x4f3502
mov esi, dword [0x5c2c34]
cmp esi, edi
jne 0x4f33fe
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, edi
je 0x4f34ee
mov eax, dword [0x5c2c2c]
cmp esi, dword [eax]
je 0x4f34ee
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x7f
push esi
call ebx
cmp eax, edi
jne 0x4f3445
push edi
push 1
push 0x7f
push esi
call ebx
cmp eax, edi
jne 0x4f3445
push 0xffffffffffffffde
push esi
call dword [sym.imp.USER32.dll_GetClassLongA]
cmp eax, edi
jne 0x4f3445
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
cmp eax, edi
je 0x4f3457
mov ecx, dword [0x5c2c2c]
mov edx, dword [ecx]
push eax
push edi
push 0x80
push edx
call ebx
mov eax, str.___Help
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3460
sub eax, edx
add eax, 0x105
push eax
call fcn.004fc6be
add esp, 4
mov ebx, eax
push 0x104
push ebx
push esi
mov byte [ebx], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3490
sub eax, edx
je 0x4f34e5
push 0x2d
push ebx
call fcn.005056ca
add esp, 8
cmp eax, edi
je 0x4f34ad
mov byte [eax], 0
mov eax, str.___Help
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f34b4
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4f34c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x5c2c2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
call fcn.004fedfc
add esp, 4
mov ecx, dword [0x5c2c2c]
lea edx, [ebp - 0x24]
push edx
push 0x57de7c
call fcn.004e0230
mov eax, dword [ebp - 0x24]
push 0x5bc424
call fcn.004dd390
mov eax, dword [ebp - 0x24]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret