Function at 0x455210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489086
mov eax, dword fs:[0]
push eax
mov eax, 0x1450
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x143c], ebx
mov edi, ecx
push 0x97
push dword [0x4ac9d0]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [0x4ac928], eax
test eax, eax
jne 0x45526d
xor al, al
jmp 0x4557f3
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, dword [ebp + 8]
mov dword [0x4ac924], eax
mov dword [ebp - 0x1438], esi
cmp ebx, 0xffffffff
jne 0x4552b9
cmp esi, ebx
jne 0x4552b9
lea eax, [ebp - 0x1424]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1424]
mov esi, dword [ebp - 0x1418]
mov dword [ebp - 0x143c], eax
mov dword [ebp - 0x1438], esi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x1434]
push eax
push 0x464
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, dword [ebp - 0x1430]
jl 0x455266
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
cmp dword [0x4abb98], eax
sete al
push eax
push 0x8009
push dword [0x4ac924]
call esi
cmp dword [0x4abb98], 0
je 0x45531d
cmp dword [0x4adec0], 6
jg 0x455319
jne 0x45531d
cmp dword [0x4adec4], 1
jl 0x45531d
xor eax, eax
jmp 0x455322
mov eax, 1
push eax
push 0x800f
push dword [0x4ac924]
call esi
push 0xa00
lea eax, [ebp - 0xa14]
push 0
push eax
call fcn.0046dcc0
add esp, 0xc
lea eax, [ebp - 0xa14]
push 0x500
push eax
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x4abbcc], 0
jne 0x45538b
lea ecx, [ebp - 0xa14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455373
sub ecx, edx
sar ecx, 1
jne 0x45538b
mov eax, 1
jmp 0x45538d
xor eax, eax
push eax
push 0x800a
push dword [0x4ac924]
call esi
cmp dword [0x4abbcc], 0
je 0x4553b1
cmp byte [0x4abbd4], 0
jne 0x4553b1
xor eax, eax
jmp 0x4553b6
mov eax, 1
push eax
push 0x800e
push dword [0x4ac924]
call esi
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
xor eax, eax
cmp byte [0x4abbd4], al
mov ecx, 8
cmovne eax, ecx
push eax
push 0x8010
push dword [0x4ac924]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x4ab995], al
cmovne eax, ecx
push eax
push 0x800b
push dword [0x4ac924]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x4ab996], al
cmovne eax, ecx
push eax
push 0x800c
push dword [0x4ac924]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x4ab997], al
cmovne eax, ecx
push eax
push 0x800d
push dword [0x4ac924]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x4ab998], al
cmovne eax, ecx
push eax
push 0x8011
push dword [0x4ac924]
call esi
mov ecx, dword [0x4ac940]
test ecx, ecx
je 0x4554fe
mov eax, dword [0x4ac93c]
test eax, eax
je 0x4554fe
mov esi, dword [sym.imp.USER32.dll_SetMenuItemBitmaps]
push ecx
push eax
push 0
push 0x800b
push dword [0x4ac924]
call esi
push dword [0x4ac940]
push dword [0x4ac93c]
push 0
push 0x800c
push dword [0x4ac924]
call esi
push dword [0x4ac940]
push dword [0x4ac93c]
push 0
push 0x800d
push dword [0x4ac924]
call esi
push dword [0x4ac940]
push dword [0x4ac93c]
push 0
push 0x8010
push dword [0x4ac924]
call esi
push dword [0x4ac940]
push dword [0x4ac93c]
push 0
push 0x8011
push dword [0x4ac924]
call esi
push 0
push edi
push 0
push dword [ebp - 0x1438]
push dword [ebp - 0x143c]
push 0x182
push dword [0x4ac924]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [0x4ac928]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
add esi, 0xffff7ff7
mov dword [0x4ac924], 0
cmp esi, 8
ja case.default.0x455547
jmp dword [esi*4 + 0x455810]
push 0x491dd8
push 0x456
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x4abb9c], 8
mov eax, 0x4abb88
mov dword [0x4abb98], 0
cmovae eax, dword [0x4abb88]
xor ecx, ecx
push ecx
push 1
push edi
mov word [eax], cx
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x455547
push 0
push 0x42ccb0
push edi
push 0x9b
push dword [0x4ac9d0]
mov dword [0x4ab90c], 1
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp case.default.0x455547
push 0x491dd8
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x4abbd0], 8
mov eax, 0x4abbbc
mov dword [0x4abbcc], 0
cmovae eax, dword [0x4abbbc]
xor ecx, ecx
mov word [eax], cx
jmp case.default.0x455547
cmp dword [0x4abbd0], 8
mov eax, 0x4abbbc
cmovae eax, dword [0x4abbbc]
push eax
lea eax, [ebp - 0x1414]
push str.notepad.exe___s_
push eax
call fcn.0040a9b0
add esp, 0xc
lea eax, [ebp - 0x1448]
push 0x39c
push eax
call fcn.0046cd70
mov esi, eax
lea eax, [ebp - 0x1458]
mov dword [ebp - 4], 0
push 0x2fd
push eax
call fcn.0046cd70
mov byte [ebp - 4], 1
mov edx, 0x491dd8
mov ecx, dword [esi]
mov esi, edx
mov eax, dword [eax]
test ecx, ecx
cmovne esi, ecx
test eax, eax
mov ecx, edi
cmovne edx, eax
lea eax, [ebp - 0x1414]
push eax
push esi
call fcn.0042e9d0
push dword [ebp - 0x1450]
call fcn.0046bc3a
add esp, 0x1c
push dword [ebp - 0x1458]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1440]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1448]
call fcn.0046bc3a
add esp, 4
jmp case.default.0x455547
cmp byte [0x4abbd4], 0
sete al
mov byte [0x4abbd4], al
movzx eax, al
xor eax, 1
push eax
push 0x460
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
cmp byte [0x4abbd4], al
push 0
sete al
push eax
push 0xcf
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x491dd8
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x4abbd0], 8
mov eax, 0x4abbbc
mov dword [0x4abbcc], 0
cmovae eax, dword [0x4abbbc]
xor ecx, ecx
mov word [eax], cx
cmp byte [0x4abbd4], cl
je 0x455768
lea eax, [ebp - 0x1448]
push 0x39d
push eax
call fcn.0046cd70
add esp, 8
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x467
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x455690
lea eax, [ebp - 0x1420]
push 0x162
push eax
call fcn.0046cd70
add esp, 8
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x467
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x1418]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1420]
call fcn.0046bc3a
add esp, 4
jmp case.default.0x455547
cmp byte [0x4ab995], 0
sete byte [0x4ab995]
jmp case.default.0x455547
cmp byte [0x4ab996], 0
sete byte [0x4ab996]
jmp case.default.0x455547
cmp byte [0x4ab997], 0
sete byte [0x4ab997]
jmp case.default.0x455547
cmp byte [0x4ab998], 0
sete byte [0x4ab998]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret