Function at 0x430fd0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x430ff7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x431001
xor edx, edx
mov word [esp + 0x120], dx
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00497900
mov esi, dword [0x4cabc8]
add esp, 0xc
test esi, esi
je 0x43106f
cmp byte [esi + 0x11], 0
je 0x431068
mov edx, dword [esi]
push edx
call fcn.00470a90
add esp, 4
sub eax, 0
je 0x43104c
dec eax
je 0x431045
mov eax, str.Object
jmp 0x431051
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x431051
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4aa138
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00475700
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x431025
cmp word [esp + 0x20], 0
je 0x4310c8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431080
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x4310b6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5a2c
push edi
call fcn.00491724
add esp, 0xc
xor edx, edx
mov word [edi + esi*2], dx
jmp 0x4310c8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x4310c8
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x4c6ae0]
cmp byte [edx + 0xf4], 0
je 0x4310e8
cmp byte [0x4cac09], 0
mov dword [esp + 0x14], 1
je 0x4310f0
mov dword [esp + 0x14], 0
mov eax, dword [0x4c8124]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x43120e
mov dword [esp + 0x18], 0x4acd84
xor ebp, ebp
cmp dword [0x4c80ec], 0
mov edi, 0x4a4990
je 0x431123
mov edi, 0x4a4988
cmp dword [0x4c80e8], 0
mov esi, 0x4a4990
je 0x431136
mov esi, 0x4a4988
push 1
call fcn.00411910
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411cd0
mov ecx, dword [0x4c8124]
mov edx, dword [0x4c8128]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4c8120]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [0x4cabd0]
push eax
mov eax, dword [0x4cabd4]
push ebp
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push edi
mov edi, dword [esp + 0x414]
push esi
lea ecx, [esp + 0x14c]
push ecx
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
mov esi, 0xfffe
call fcn.004756c0
lea esi, [edi + eax*2]
mov edx, esi
mov ebx, edi
sub edx, ebx
sar edx, 1
mov eax, 0xfffe
add esp, 0x34
sub eax, edx
push eax
push esi
call fcn.00409320
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4311c3
sub eax, edx
sar eax, 1
cmp dword [0x4c89c8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x4311e8
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov ecx, edi
sub ecx, ebx
sar ecx, 1
mov esi, 0xfffe
push eax
sub esi, ecx
call fcn.004756c0
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x431110