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

Disassembly:
sub esp, 0x254
mov eax, dword [0x58d1a0]
push ebx
push ebp
push esi
mov ebp, ecx
push 0x808
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_LoadMenuW]
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
xor ebx, ebx
call fcn.00447080
mov edx, dword [eax + 0x290]
mov dword [esp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
test ecx, ecx
ja 0x47a9cb
push ebx
push eax
push 0x8fe
call fcn.004d7370
mov ecx, dword [esp + 0x18]
add esp, 0xc
test ecx, ecx
je 0x47abe1
lea eax, [ecx*4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
je 0x47abe1
mov ecx, dword [esp + 0xc]
push edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00447080
mov ecx, eax
call fcn.004487b0
test esi, esi
je 0x47abd3
push esi
mov ecx, 0x58d8f8
call fcn.004ee350
push 0
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x47ab13
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
jbe 0x47aae7
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [ebp]
mov esi, eax
lea eax, [esp + 0x5c]
push 0x104
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov ecx, 0xc
neg esi
sbb esi, esi
lea edi, [esp + 0x2c]
and esi, 8
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], esi
lea eax, [esp + 0x5c]
lea esi, [ebx + 1]
push eax
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 0x43
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], eax
push 0
push 0
push 0xffffffffffffffff
push 0
push ecx
push 1
push ebx
push edx
mov ecx, 0x58d8f8
call fcn.004ee580
mov eax, dword [esp + 0x10]
mov ebx, esi
add ebp, 4
cmp ebx, eax
jb 0x47aa42
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push ecx
push edx
push eax
push 0x188
push edi
mov ecx, 0x58d8f8
call fcn.004ee9d0
mov ebx, eax
push esi
mov ecx, 0x58d8f8
call fcn.004ee400
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
test ebx, ebx
jle 0x47abd3
mov eax, dword [esp + 0x10]
cmp ebx, eax
ja 0x47ab65
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + ebx*4 - 4]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47ab5a
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push esi
call edi
push 0
push esi
call edi
jmp 0x47abd3
push esi
call fcn.0047a870
add esp, 4
jmp 0x47abd3
sub ebx, 0x8038
je 0x47abb2
dec ebx
je 0x47ab86
sub ebx, 0x1c1c
jne 0x47abd3
push 0
mov ecx, 0x56d188
call fcn.0040bf60
jmp 0x47abd3
xor edi, edi
test eax, eax
jbe 0x47abd3
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
push 6
push edx
call ebx
mov eax, dword [esi]
push 0
push eax
call ebx
mov eax, dword [esp + 0x10]
inc edi
add esi, 4
cmp edi, eax
jb 0x47ab96
jmp 0x47abd3
xor esi, esi
test eax, eax
jbe 0x47abd3
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
push ecx
call fcn.0047a870
mov eax, dword [esp + 0x14]
add esp, 4
inc esi
add edi, 4
cmp esi, eax
jb 0x47abbc
mov edx, dword [esp + 0x14]
push edx
call fcn.0051d19a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret