Function at 0x41e0b0
Capabilities:
Get graphical window text
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a317
mov eax, dword fs:[0]
push eax
sub esp, 0xab8
mov eax, dword [0x449314]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
mov dword [ebp - 0xaa8], ebx
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0xa88], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa58], eax
add esp, 0x24
movq qword [ebp - 0xa94], xmm0
mov dword [ebp - 0xa8c], 0
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa74], 7
mov word [ebp - 0xa88], ax
mov dword [ebp - 0xa60], eax
mov dword [ebp - 0xa5c], 7
mov word [ebp - 0xa70], ax
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], 7
mov word [ebp - 0xa58], ax
push ebx
push eax
push 0x410
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xab8], eax
test eax, eax
je 0x41eb17
push 0x104
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xa94], ebx
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e20b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e1e4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa70]
call fcn.00403d70
jmp 0x41e39b
call esi
mov ecx, eax
test ecx, ecx
jle 0x41e21c
movzx ecx, cx
or ecx, 0x80070000
mov edx, dword [0x449ff8]
test edx, edx
je 0x41e27d
mov edi, dword [edx]
mov eax, edi
mov ebx, dword [edx + 4]
or eax, ebx
je 0x41e27d
test byte [edx + 8], 1
je 0x41e27d
cmp byte [edx + 0xf], 9
jb 0x41e27d
mov eax, dword [ebp - 0xaa8]
push 0
push 4
mov dword [ebp - 0xa9c], eax
lea eax, [ebp - 0xa9c]
push eax
push 4
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xa98], ecx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0xd
push 0x43fe94
push 0x2b
push ebx
push edi
call fcn.0041bd20
add esp, 0x30
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xab8]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41e329
lea eax, [ebp - 0x218]
push eax
call fcn.0041de20
mov edx, eax
test edx, edx
js 0x41e2c7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e2b7
jmp 0x41e1ef
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e39b
mov edi, dword [ecx]
mov eax, edi
mov ebx, dword [ecx + 4]
or eax, ebx
je 0x41e39b
test byte [ecx + 8], 1
je 0x41e39b
cmp byte [ecx + 0xf], 9
jb 0x41e39b
mov eax, dword [ebp - 0xaa8]
push 0
push 4
mov dword [ebp - 0xa9c], eax
lea eax, [ebp - 0xa9c]
push eax
push 4
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xa98], edx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0xe
jmp 0x41e38a
call esi
mov ecx, eax
test ecx, ecx
jle 0x41e33a
movzx ecx, cx
or ecx, 0x80070000
mov edx, dword [0x449ff8]
test edx, edx
je 0x41e39b
mov edi, dword [edx]
mov eax, edi
mov ebx, dword [edx + 4]
or eax, ebx
je 0x41e39b
test byte [edx + 8], 1
je 0x41e39b
cmp byte [edx + 0xf], 9
jb 0x41e39b
mov eax, dword [ebp - 0xaa8]
push 0
push 4
mov dword [ebp - 0xa9c], eax
lea eax, [ebp - 0xa9c]
push eax
push 4
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xa98], ecx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0xf
push 0x43fe94
push 0x2b
push ebx
push edi
call fcn.0041bd20
add esp, 0x30
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0xab8]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41e3fe
lea eax, [ebp - 0x628]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
mov edx, eax
add esp, 8
test edx, edx
je 0x41e470
add edx, 2
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e3e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa88]
call fcn.00403d70
jmp 0x41e470
call esi
mov ecx, eax
test ecx, ecx
jle 0x41e40f
movzx ecx, cx
or ecx, 0x80070000
mov edx, dword [0x449ff8]
test edx, edx
je 0x41e470
mov esi, dword [edx]
mov eax, esi
mov edi, dword [edx + 4]
or eax, edi
je 0x41e470
test byte [edx + 8], 1
je 0x41e470
cmp byte [edx + 0xf], 9
jb 0x41e470
mov eax, dword [ebp - 0xaa8]
push 0
push 4
mov dword [ebp - 0xa9c], eax
lea eax, [ebp - 0xa9c]
push eax
push 4
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xa98], ecx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x10
push 0x43fe94
push 0x2b
push edi
push esi
call fcn.0041bd20
add esp, 0x30
call fcn.0041f210
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebx, eax
test ebx, ebx
je 0x41ea51
mov edi, dword [sym.imp.USER32.dll_GetWindow]
nop dword [eax]
lea eax, [ebp - 0xaa0]
mov dword [ebp - 0xaa0], 0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x400
lea eax, [ebp - 0xa28]
mov esi, 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0xa40], 0
add esp, 0xc
mov dword [ebp - 0xa30], 0
mov dword [ebp - 0xa2c], 7
mov word [ebp - 0xa40], ax
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetAncestor]
push 4
push ebx
call edi
mov edi, eax
lea eax, [ebp - 0x420]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0xa98], eax
lea eax, [ebp - 0xa28]
push 0x200
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x41e558
lea ecx, [ebp - 0xa28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e536
sub ecx, edx
lea eax, [ebp - 0xa28]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa40]
call fcn.00403d70
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000
je 0x41e5df
push ebx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x41e5df
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e5d4
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x41e5d4
test byte [ecx + 8], 2
je 0x41e5d4
cmp byte [ecx + 0xf], 9
jb 0x41e5d4
mov eax, dword [ebp - 0xaa0]
push 0
push 4
mov dword [ebp - 0xaac], eax
lea eax, [ebp - 0xaac]
push eax
push 4
lea eax, [ebp - 0xab0]
mov dword [ebp - 0xab0], ebx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x11
push 0x43fe94
push 0x2b
push esi
push edx
call fcn.0041bd20
add esp, 0x30
mov edi, dword [ebp - 0xa98]
jmp 0x41e863
test edi, edi
je 0x41e64c
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e5d4
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x41e5d4
test byte [ecx + 8], 2
je 0x41e5d4
cmp byte [ecx + 0xf], 9
jb 0x41e5d4
mov eax, dword [ebp - 0xaa0]
push 0
push 4
mov dword [ebp - 0xab0], eax
lea eax, [ebp - 0xab0]
push eax
push 4
lea eax, [ebp - 0xaac]
mov dword [ebp - 0xaac], ebx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x12
push 0x43fe94
push 0x2b
push esi
push edx
call fcn.0041bd20
mov edi, dword [ebp - 0xa98]
jmp 0x41e860
lea eax, [ebp - 0xa40]
mov ecx, 0x44a0c8
push eax
lea eax, [ebp - 0xac4]
push eax
call fcn.0041d9c0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x41e787
add eax, 0x10
mov ecx, 0x44a0c8
push eax
lea eax, [ebp - 0xa40]
push eax
call fcn.004031a0
test al, al
jne 0x41e787
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e77c
mov edi, dword [ecx]
mov eax, edi
mov edx, dword [ecx + 4]
or eax, edx
mov dword [ebp - 0xab0], edi
mov dword [ebp - 0xaa4], edx
je 0x41e77c
test byte [ecx + 8], 2
je 0x41e77c
cmp byte [ecx + 0xf], 9
jb 0x41e77c
cmp dword [ebp - 0xa2c], 8
lea edx, [ebp - 0xa40]
mov eax, dword [ebp - 0xaa0]
cmovae edx, dword [ebp - 0xa40]
mov dword [ebp - 0xaac], eax
mov dword [ebp - 0xab4], ebx
test edx, edx
je 0x41e73d
movzx esi, word [edx]
test si, si
je 0x41e72b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e702
sub ecx, edi
mov eax, str._NULL_
mov edi, dword [ebp - 0xab0]
sar ecx, 1
test si, si
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x41e747
test si, si
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x41e747
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 4
lea eax, [ebp - 0xaac]
push eax
push 4
lea eax, [ebp - 0xab4]
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x13
push 0x43fe94
push 0x2b
push dword [ebp - 0xaa4]
push edi
call fcn.0041bd20
add esp, 0x38
mov edi, dword [ebp - 0xa98]
jmp 0x41e863
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, al
jns 0x41e7f9
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e5d4
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x41e5d4
test byte [ecx + 8], 2
je 0x41e5d4
cmp byte [ecx + 0xf], 9
jb 0x41e5d4
mov eax, dword [ebp - 0xaa0]
push 0
push 4
mov dword [ebp - 0xaa4], eax
lea eax, [ebp - 0xaa4]
push eax
push 4
lea eax, [ebp - 0xab4]
mov dword [ebp - 0xab4], ebx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x14
jmp 0x41e633
mov edi, dword [ebp - 0xa98]
test edi, edi
jne 0x41e865
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41e863
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x41e863
test byte [ecx + 8], 2
je 0x41e863
cmp byte [ecx + 0xf], 9
jb 0x41e863
mov eax, dword [ebp - 0xaa0]
push edi
push 4
mov dword [ebp - 0xaa4], eax
lea eax, [ebp - 0xaa4]
push eax
push 4
lea eax, [ebp - 0xab4]
mov dword [ebp - 0xab4], ebx
push eax
push 0x28
push str.cRSProcessInfo::QueryProcessInformation
push 0x15
push 0x43fe94
push 0x2b
push esi
push edx
call fcn.0041bd20
add esp, 0x30
xor esi, esi
mov eax, dword [ebp - 0xaa8]
cmp dword [ebp - 0xaa0], eax
jne 0x41e9f8
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e9f8
test esi, esi
je 0x41e9f8
test edi, edi
je 0x41e8c2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e8a0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa58]
call fcn.00403d70
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea eax, [ebp - 0xa9c]
push eax
push 0x64
push 0
push 0
push 0
push 0x7f
push ebx
mov dword [ebp - 0xa9c], 0
call edi
test eax, eax
je 0x41e8f4
mov esi, dword [ebp - 0xa9c]
test esi, esi
jne 0x41e930
lea eax, [ebp - 0xa9c]
push eax
push 0x64
push 0
push 0
push 0
push 0x37
push ebx
call edi
test eax, eax
je 0x41e916
mov esi, dword [ebp - 0xa9c]
test esi, esi
jne 0x41e930
push 0xffffffffffffffde
push ebx
call dword [sym.imp.USER32.dll_GetClassLongW]
mov esi, dword [ebp - 0xa90]
test eax, eax
mov dword [ebp - 0xa9c], eax
cmovne esi, eax
push ebx
mov dword [ebp - 0xa90], esi
call dword [sym.imp.USER32.dll_IsHungAppWindow]
mov ecx, dword [ebp - 0xa8c]
test eax, eax
mov edi, dword [0x44a0d4]
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0xa8c], ecx
cmp edi, dword [0x44a0d8]
je 0x41e9b3
mov eax, dword [ebp - 0xa94]
mov dword [edi], eax
lea eax, [ebp - 0xa88]
mov dword [edi + 8], ecx
lea ecx, [edi + 0xc]
push eax
mov dword [ebp - 0xaa4], edi
mov dword [edi + 4], esi
call fcn.0040b1e0
lea eax, [ebp - 0xa70]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x24]
push eax
call fcn.0040b1e0
lea eax, [ebp - 0xa58]
mov byte [ebp - 4], 3
lea ecx, [edi + 0x3c]
push eax
call fcn.0040b1e0
add dword [0x44a0d4], 0x54
jmp 0x41e9c5
lea eax, [ebp - 0xa94]
mov ecx, 0x44a0d0
push eax
push edi
call fcn.0041d7c0
cmp dword [ebp - 0xa44], 8
lea eax, [ebp - 0xa58]
mov dword [ebp - 0xa8c], 0
cmovae eax, dword [ebp - 0xa58]
xor ecx, ecx
mov dword [ebp - 0xa48], 0
mov word [eax], cx
mov dword [ebp - 0xa90], ecx
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 2
push ebx
call edi
mov edx, dword [ebp - 0xa2c]
mov ebx, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x41ea49
mov ecx, dword [ebp - 0xa40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ea3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41eb07
push edx
push ecx
call fcn.00435eb6
add esp, 8
test ebx, ebx
jne 0x41e490
push dword [ebp - 0xab8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xa44]
cmp edx, 8
jb 0x41ea99
mov ecx, dword [ebp - 0xa58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ea8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41eb07
push edx
push ecx
call fcn.00435eb6
add esp, 8
mov edx, dword [ebp - 0xa5c]
cmp edx, 8
jb 0x41ead5
mov ecx, dword [ebp - 0xa70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eacb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41eb07
push edx
push ecx
call fcn.00435eb6
add esp, 8
mov edx, dword [ebp - 0xa74]
cmp edx, 8
jb 0x41eb17
mov ecx, dword [ebp - 0xa88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eb0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41eb0d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
xor eax, eax
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.0043624e
mov esp, ebp
pop ebp
ret 4