Function at 0x4a8a50
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x808
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xcc]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [esp + 0x820]
test ecx, ecx
je 0x4a8a93
test eax, eax
jne 0x4a8a93
push eax
push eax
push ecx
mov ecx, esp
push str.1008
call fcn.00405730
mov ecx, dword [ebx + 4]
push ecx
call fcn.004b89a0
add esp, 0x10
mov edx, dword [ebx + 0x38]
push 0
push 0x549974
push 0
push edx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
push eax
call ebp
mov eax, dword [0x554e0c]
mov edx, dword [ebx + 0xcc]
mov dword [esp + 0x18], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x400
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x170]
test eax, eax
jne 0x4a8b3e
mov eax, dword [ebx + 0xcc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4a8afb
push 0
push eax
call esi
mov eax, dword [ebx + 0xe4]
mov eax, dword [eax + 0x220]
test eax, eax
je 0x4a8b10
push 0
push eax
call esi
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4a8bbb
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4a8bbb
mov eax, dword [esp + 0x824]
test eax, eax
jne 0x4a8bbb
jmp 0x4a8bb4
mov edx, dword [ebx + 0xcc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call esi
mov eax, dword [ebx + 0xe4]
push 5
mov ecx, dword [eax + 0x220]
push ecx
call esi
mov edx, dword [ebx + 0xe4]
mov eax, dword [edx + 0x264]
push eax
call ebp
mov ecx, dword [ebx + 0xe4]
mov dword [ecx + 0x2c], 1
mov edx, dword [ebx + 0x178]
mov eax, dword [ebx + 0xcc]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4a8bbb
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4a8bbb
mov eax, dword [esp + 0x824]
test eax, eax
jne 0x4a8bbb
mov ecx, ebx
call fcn.0049fe50
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a8d4d
lea edx, [esp + 0x10]
push 0x28
push edx
call fcn.004bd990
mov edi, eax
mov eax, dword [ebx + 0x21c]
lea ebp, [ebx + 0x21c]
add esp, 8
mov esi, dword [edi]
cmp eax, esi
je 0x4a8c88
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jge 0x4a8c05
lea edx, [eax - 0xc]
cmp edx, dword [0x547574]
jne 0x4a8c0c
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x4a8c4a
mov edi, dword [esi - 8]
mov ecx, ebp
push edi
mov dword [esp + 0x18], edi
call fcn.00405660
test eax, eax
je 0x4a8c88
lea eax, [edi + edi]
mov edi, dword [ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], edx
mov ecx, dword [ebp]
mov word [eax + ecx], 0
jmp 0x4a8c88
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
je 0x4a8c79
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a8c71
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547570]
mov dword [ebp], eax
mov edi, dword [edi]
mov dword [ebp], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a8cb7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a8cb7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x10], edx
jg 0x4a8cd0
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x4a8d2c
mov eax, dword [eax - 8]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4a8ce1
jne 0x4a8d6c
mov ecx, dword [0x547570]
mov dword [ebp], ecx
mov edi, dword [ebp]
lea ecx, [eax + eax + 2]
lea esi, [edx + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [0x547574]
je 0x4a8d2c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a8d2c
mov edx, dword [esp + 0x10]
push edx
call fcn.00532222
add esp, 4
mov ebp, dword [ebp]
mov eax, dword [ebx + 0xe4]
push ebp
push 0x100
push 0x40b
mov ecx, dword [eax + 0x270]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0xe4]
push 0
call fcn.004e3af0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x808
ret 0xc
lea edx, [eax + eax + 0xe]
push edx
call fcn.00532695
add esp, 4
test eax, eax
je 0x4a8da5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov word [eax + ecx*2 + 0xc], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
add eax, 0xc
mov dword [ebp], eax
mov eax, ecx
jmp 0x4a8cea
xor ebp, ebp
jmp 0x4a8d2f