Function at 0x4a7af0
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 0x4a7b33
test eax, eax
jne 0x4a7b33
push eax
push eax
push ecx
mov ecx, esp
push str.1008
call fcn.00405730
mov ecx, dword [ebx + 4]
push ecx
call fcn.004b78e0
add esp, 0x10
mov edx, dword [ebx + 0x38]
push 0
push 0x548954
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 [0x553d9c]
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 0x4a7bde
mov eax, dword [ebx + 0xcc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4a7b9b
push 0
push eax
call esi
mov eax, dword [ebx + 0xe4]
mov eax, dword [eax + 0x220]
test eax, eax
je 0x4a7bb0
push 0
push eax
call esi
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x4a7c5b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4a7c5b
mov eax, dword [esp + 0x824]
test eax, eax
jne 0x4a7c5b
jmp 0x4a7c54
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 0x4a7c5b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4a7c5b
mov eax, dword [esp + 0x824]
test eax, eax
jne 0x4a7c5b
mov ecx, ebx
call fcn.0049ef00
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a7ded
lea edx, [esp + 0x10]
push 0x28
push edx
call fcn.004bc8d0
mov edi, eax
mov eax, dword [ebx + 0x21c]
lea ebp, [ebx + 0x21c]
add esp, 8
mov esi, dword [edi]
cmp eax, esi
je 0x4a7d28
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jge 0x4a7ca5
lea edx, [eax - 0xc]
cmp edx, dword [0x546564]
jne 0x4a7cac
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x4a7cea
mov edi, dword [esi - 8]
mov ecx, ebp
push edi
mov dword [esp + 0x18], edi
call fcn.00405660
test eax, eax
je 0x4a7d28
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 0x4a7d28
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
je 0x4a7d19
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7d11
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7d57
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7d57
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4a7d70
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x4a7dcc
mov eax, dword [eax - 8]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4a7d81
jne 0x4a7e0c
mov ecx, dword [0x546560]
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 [0x546564]
je 0x4a7dcc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7dcc
mov edx, dword [esp + 0x10]
push edx
call fcn.00531732
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.004e2f30
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.00531ba5
add esp, 4
test eax, eax
je 0x4a7e45
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 0x4a7d8a
xor ebp, ebp
jmp 0x4a7dcf