Function at 0x4047a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61604c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x230], eax
push ecx
push eax
mov dword [ebp - 0x228], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x97
lea eax, [edi + 0x18]
push 0
push eax
call fcn.005e8c40
push 0x95
lea eax, [edi + 0x276]
push 0
push eax
lea esi, [edi + 0x274]
call fcn.005e8c40
push 0x97
lea ebx, [edi + 0x146]
push 0
push ebx
call fcn.005e8c40
xor eax, eax
add esp, 0x24
mov word [esi], ax
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x404c11
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x404c11
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x40489b
push 0x96
lea eax, [ebp - 0x218]
push eax
push 0x97
push esi
call fcn.005ef597
add esp, 0x10
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x404c2f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea edi, [ebp - 0x218]
mov dword [ebp - 4], 0
shr edi, 0x10
test edi, edi
jne 0x4048e3
lea eax, [ebp - 0x218]
movzx esi, ax
lea ecx, [ebp - 0x224]
push esi
call fcn.00402c80
jmp 0x40491b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00402df0
lea eax, [ebp - 0x218]
movzx esi, ax
mov dword [ebp - 4], 1
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x404c39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x404955
push esi
lea ecx, [ebp - 0x21c]
call fcn.00402c80
jmp 0x404982
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404960
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402df0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x224]
push 0x5c
push edi
call fcn.005e7e2d
add esp, 8
test eax, eax
jne 0x4049a0
or eax, 0xffffffff
jmp 0x4049a4
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404cc0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x220]
cmp dword [esi - 4], 1
jle 0x4049ea
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.004030b0
mov esi, dword [ebp - 0x220]
push 0x96
push esi
push 0x97
push ebx
call fcn.005ef597
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
add esp, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x404a59
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x66ecfc
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404a86
test dx, dx
je 0x404a82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404a86
add eax, 4
add ecx, 4
test dx, dx
jne 0x404a60
xor eax, eax
jmp 0x404a8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b61
mov ecx, str.ApplicationFrameHost.exe
mov eax, ebx
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404ac6
test dx, dx
je 0x404ac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404ac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404aa0
xor eax, eax
jmp 0x404acb
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b61
mov ecx, str.ShellExperienceHost.exe
mov eax, ebx
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b06
test dx, dx
je 0x404b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b06
add eax, 4
add ecx, 4
test dx, dx
jne 0x404ae0
xor eax, eax
jmp 0x404b0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b61
mov ecx, str.Idle.exe
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404b3c
test dx, dx
je 0x404b38
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404b3c
add eax, 4
add ecx, 4
test dx, dx
jne 0x404b16
xor eax, eax
jmp 0x404b41
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b61
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b50
sub ecx, edx
sar ecx, 1
jne 0x404b85
push str.RestProcess
push 0x97
push ebx
call fcn.005ef42e
mov edi, dword [ebp - 0x22c]
add esp, 0xc
xor eax, eax
mov word [edi + 0x15c], ax
jmp 0x404b8b
mov edi, dword [ebp - 0x22c]
push 0x96
lea esi, [edi + 0x18]
push esi
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404bad
xor ecx, ecx
mov word [edi + eax*2 + 0x18], cx
jmp 0x404bc1
push 0x96
push ebx
push 0x97
push esi
call fcn.005ef597
add esp, 0x10
push 0xf
push str.UnlockingWindow
push esi
call fcn.005ef492
add esp, 0xc
test eax, eax
je 0x404be9
push 0xd
push str.LockingWindow
push esi
call fcn.005ef492
add esp, 0xc
test eax, eax
jne 0x404c05
push str.RestProcess
push 0x97
push ebx
call fcn.005ef42e
add esp, 0xc
xor eax, eax
mov word [edi + 0x15c], ax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403270
push 0x80004005
call fcn.00403270
int3