Function at 0x4b6e39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4b6e6e
mov eax, 7
jmp 0x4b719a
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x234], eax
push 4
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b6ea6
mov eax, 7
jmp 0x4b719a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x22]
and eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x4b6f6b
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0xe6], 0
je 0x4b6f35
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 0x10]
and eax, 2
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x11c], 0
jne 0x4b6f6b
cmp dword [ebp - 0x234], 0
je 0x4b6f6b
push 0
push 0
push 0x473
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x105
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [0x531b54], 0
je 0x4b7020
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x4b6fee
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
add eax, 4
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 3
call dword [0x531b54]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x4b7020
mov eax, 7
jmp 0x4b719a
push 0x105
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [ebp - 0x11c], 0
jne 0x4b704d
mov eax, 7
jmp 0x4b719a
mov eax, dword [ebp - 0x118]
push eax
call fcn.00520a81
add esp, 4
cmp eax, 1
jne 0x4b707e
lea eax, [ebp - 0x22c]
push eax
push 0x235
call fcn.004e3fc4
add esp, 8
jmp 0x4b7092
lea eax, [ebp - 0x22c]
push eax
push 0x1ff
call fcn.004e3fc4
add esp, 8
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x118]
push eax
call fcn.00520a81
add esp, 4
cmp eax, 1
jne 0x4b70e6
lea eax, [ebp - 0x110]
push eax
push 0x236
call fcn.004e3fc4
add esp, 8
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 0xc], 0
je 0x4b70ff
mov dword [ebp - 0x124], 6
jmp 0x4b713f
mov dword [0x533660], 1
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x23
push 0x52d870
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x124], eax
mov dword [0x533660], 0
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x23c], eax
jmp 0x4b717d
mov eax, dword [ebp + 8]
push eax
call fcn.004b68d2
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b7173
mov dword [ebp - 0x124], 2
jmp 0x4b718f
cmp dword [ebp - 0x23c], 6
je 0x4b7150
jmp 0x4b718f
mov eax, dword [ebp - 0x124]
jmp 0x4b719a
pop edi
pop esi
pop ebx
leave
ret