Function at 0x4524b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fcc6
mov eax, dword fs:[0]
push eax
mov eax, 0x1450
call fcn.0047a9b0
mov eax, dword [0x49f008]
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 [0x4a090c]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [0x4a0880], eax
test eax, eax
jne 0x45250d
xor al, al
jmp 0x452a93
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, dword [ebp + 8]
mov dword [0x4a087c], eax
mov dword [ebp - 0x1438], esi
cmp ebx, 0xffffffff
jne 0x452559
cmp esi, ebx
jne 0x452559
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 - 0x1420]
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 0x452506
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
cmp dword [0x49fb50], eax
sete al
push eax
push 0x8009
push dword [0x4a087c]
call esi
cmp dword [0x49fb50], 0
je 0x4525bd
cmp dword [0x4a1df0], 6
jg 0x4525b9
jne 0x4525bd
cmp dword [0x4a1df4], 1
jl 0x4525bd
xor eax, eax
jmp 0x4525c2
mov eax, 1
push eax
push 0x800f
push dword [0x4a087c]
call esi
push 0xa00
lea eax, [ebp - 0xa14]
push 0
push eax
call fcn.00465300
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 [0x49fb84], 0
jne 0x45262b
lea ecx, [ebp - 0xa14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452613
sub ecx, edx
sar ecx, 1
jne 0x45262b
mov eax, 1
jmp 0x45262d
xor eax, eax
push eax
push 0x800a
push dword [0x4a087c]
call esi
cmp dword [0x49fb84], 0
je 0x452651
cmp byte [0x49fb8c], 0
jne 0x452651
xor eax, eax
jmp 0x452656
mov eax, 1
push eax
push 0x800e
push dword [0x4a087c]
call esi
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
xor eax, eax
cmp byte [0x49fb8c], al
mov ecx, 8
cmovne eax, ecx
push eax
push 0x8010
push dword [0x4a087c]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x49f985], al
cmovne eax, ecx
push eax
push 0x800b
push dword [0x4a087c]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x49f986], al
cmovne eax, ecx
push eax
push 0x800c
push dword [0x4a087c]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x49f987], al
cmovne eax, ecx
push eax
push 0x800d
push dword [0x4a087c]
call esi
xor eax, eax
mov ecx, 8
cmp byte [0x49f988], al
cmovne eax, ecx
push eax
push 0x8011
push dword [0x4a087c]
call esi
mov ecx, dword [0x4a0898]
test ecx, ecx
je 0x45279e
mov eax, dword [0x4a0894]
test eax, eax
je 0x45279e
mov esi, dword [sym.imp.USER32.dll_SetMenuItemBitmaps]
push ecx
push eax
push 0
push 0x800b
push dword [0x4a087c]
call esi
push dword [0x4a0898]
push dword [0x4a0894]
push 0
push 0x800c
push dword [0x4a087c]
call esi
push dword [0x4a0898]
push dword [0x4a0894]
push 0
push 0x800d
push dword [0x4a087c]
call esi
push dword [0x4a0898]
push dword [0x4a0894]
push 0
push 0x8010
push dword [0x4a087c]
call esi
push dword [0x4a0898]
push dword [0x4a0894]
push 0
push 0x8011
push dword [0x4a087c]
call esi
push 0
push edi
push 0
push dword [ebp - 0x1438]
push dword [ebp - 0x143c]
push 0x182
push dword [0x4a087c]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push dword [0x4a0880]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
add esi, 0xffff7ff7
mov dword [0x4a087c], 0
cmp esi, 8
ja case.default.0x4527e7
jmp dword [esi*4 + 0x452ab0]
push 0x487d18
push 0x456
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x49fb54], 8
mov eax, 0x49fb40
mov dword [0x49fb50], 0
cmovae eax, dword [0x49fb40]
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.0x4527e7
push 0
push 0x42b910
push edi
push 0x9b
push dword [0x4a090c]
mov dword [0x49f8fc], 1
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp case.default.0x4527e7
push 0x487d18
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x49fb88], 8
mov eax, 0x49fb74
mov dword [0x49fb84], 0
cmovae eax, dword [0x49fb74]
xor ecx, ecx
mov word [eax], cx
jmp case.default.0x4527e7
cmp dword [0x49fb88], 8
mov eax, 0x49fb74
cmovae eax, dword [0x49fb74]
push eax
lea eax, [ebp - 0x1414]
push str.notepad.exe___s_
push eax
call fcn.0040a5b0
add esp, 0xc
lea eax, [ebp - 0x1448]
push 0x39c
push eax
call fcn.004643b0
mov esi, eax
lea eax, [ebp - 0x1458]
mov dword [ebp - 4], 0
push 0x2fd
push eax
call fcn.004643b0
mov byte [ebp - 4], 1
mov edx, 0x487d18
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.0042d630
push dword [ebp - 0x1450]
call fcn.004634ea
add esp, 0x1c
push dword [ebp - 0x1458]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1440]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x1448]
call fcn.004634ea
add esp, 4
jmp case.default.0x4527e7
cmp byte [0x49fb8c], 0
sete al
mov byte [0x49fb8c], 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 [0x49fb8c], 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 0x487d18
push 0x45f
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x49fb88], 8
mov eax, 0x49fb74
mov dword [0x49fb84], 0
cmovae eax, dword [0x49fb74]
xor ecx, ecx
mov word [eax], cx
cmp byte [0x49fb8c], cl
je 0x452a08
lea eax, [ebp - 0x1448]
push 0x39d
push eax
call fcn.004643b0
add esp, 8
mov ecx, 0x487d18
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x467
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x452930
lea eax, [ebp - 0x1420]
push 0x162
push eax
call fcn.004643b0
add esp, 8
mov ecx, 0x487d18
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.004634ea
add esp, 4
push dword [ebp - 0x1420]
call fcn.004634ea
add esp, 4
jmp case.default.0x4527e7
cmp byte [0x49f985], 0
sete byte [0x49f985]
jmp case.default.0x4527e7
cmp byte [0x49f986], 0
sete byte [0x49f986]
jmp case.default.0x4527e7
cmp byte [0x49f987], 0
sete byte [0x49f987]
jmp case.default.0x4527e7
cmp byte [0x49f988], 0
sete byte [0x49f988]
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.004632a0
mov esp, ebp
pop ebp
ret