Function at 0x4a2060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6763e1
mov eax, dword fs:[0]
push eax
mov eax, 0x402c
call fcn.0066af60
mov eax, dword [0x74b738]
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, ecx
push 0x2000
lea eax, [ebp - 0x4010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4010]
push 0x1000
push eax
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4038], eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4030], eax
mov dword [ebp - 0x4020], eax
lea eax, [ebp - 0x4038]
push eax
mov dword [ebp - 0x402c], 0x6ed7a4
mov dword [ebp - 0x4028], 0x19
mov dword [ebp - 0x401c], 0
mov dword [ebp - 0x4024], 0x4a1f70
mov dword [ebp - 0x4034], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x4a2298
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a2298
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x4a22b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4a2191
movzx eax, ax
lea ecx, [ebp - 0x4014]
push eax
call fcn.00441820
jmp 0x4a21c2
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a21a0
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4014]
call fcn.00441d80
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x4014]
mov edi, dword [esi - 0xc]
cmp edi, 7
jg 0x4a21ee
lea eax, [esi - 0x10]
push eax
call fcn.00441300
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x4018], edi
jmp 0x4a2225
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4a21fe
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4a220a
call fcn.004225c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
add edi, 0xfffffff9
lea ecx, [ebp - 0x4018]
push eax
push 7
lea eax, [esi + edi*2]
push eax
call fcn.00422010
mov edi, dword [ebp - 0x4018]
push 0x6e96f0
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4a2254
push 8
push str.ludashi
lea ecx, [ebp - 0x4014]
call fcn.00440010
mov esi, dword [ebp - 0x4014]
push esi
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a227c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4a2298
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.00669a1e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00422220
int3