Function at 0x448940
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3cc
push ebx
mov ebx, dword [esp + 0x3d4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x448970
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44897a
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4e8804]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x448a5b
nop
cmp byte [esi + 0x11], 0
je 0x4489fd
mov eax, dword [0x4ea2dc]
mov edx, dword [esi]
test al, 1
jne 0x4489b7
push 0
or eax, 1
mov ecx, 0x4ea2e0
push 0
mov dword [0x4ea2dc], eax
call fcn.004294f0
mov eax, dword [0x4e839c]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4489c6
xor eax, eax
jmp 0x4489d2
xor eax, eax
cmp ecx, dword [0x4ea2e0]
setne al
inc eax
sub eax, 0
je 0x4489e3
sub eax, 1
je 0x4489e3
mov eax, 0x4d611c
jmp 0x4489e8
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4d6fb8
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.0049c690
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x448990
cmp word [esp + 0x10], si
je 0x448a5b
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448a12
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x448a4c
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4d0c40
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x448a5b
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x448a5b
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4e5868]
cmp byte [eax + 0xf8], 0
je 0x448a79
cmp byte [0x4e8845], 0
jne 0x448a79
mov esi, 1
jmp 0x448a7b
xor esi, esi
mov eax, dword [0x4e5b94]
cmp eax, 1
jle 0x448a8a
lea edi, [eax - 1]
jmp 0x448a8c
xor edi, edi
mov cl, 1
call fcn.0041af90
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.0041b3a0
mov ecx, dword [0x4e5b94]
mov edx, 0x4b9c10
push eax
push dword [0x4e5bac]
mov eax, dword [0x4e5978]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4cf7f8
cmovle eax, edx
cmp dword [0x4e5bc4], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4cf7f0
push eax
push dword [0x4e880c]
mov eax, ecx
push dword [0x4e8810]
cmovne eax, edx
cmp dword [0x4e5bc8], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.0049c640
add eax, eax
mov edi, 0xfffe
add ebx, eax
add esp, 0x3c
sar eax, 1
mov edx, edi
sub edx, eax
mov ecx, ebx
call fcn.00412dc0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448b32
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4e5bc0], 0
lea esi, [ebx + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebp
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.0049c640
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3cc
ret 8