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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8bc8
push eax
mov eax, 0x2c94
mov dword fs:[0], esp
call fcn.004ca2e0
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x49155a
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x491088
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x491088
mov dword [esi + 0x24], edi
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
cmp eax, edi
je 0x4910c2
cmp eax, ebx
je 0x4910c2
push edi
push 0x2fb6
push 0x500760
push str.m_ChildGui.hGuiWndNULL
call fcn.00428c10
add esp, 0x10
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004bca20
mov ecx, dword [0x52fe34]
cmp byte [ecx + 0x125fa], 0
mov dword [ebp - 4], edi
je 0x491288
lea ecx, [ebp - 0x30]
call fcn.004bc9d0
mov ecx, eax
add ecx, 8
call fcn.004b32f0
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
lea edx, [ebp - 0xa68]
push str.SetGuiMode:_BackWndx_08X__Flagsx_04X__PID_u
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp + 0xc], edi
jmp 0x491122
xor edi, edi
xor eax, eax
push 0x204
push eax
lea ecx, [ebp - 0x246]
push ecx
mov word [ebp - 0x248], ax
call fcn.004c9b50
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 3
ja case.default.0x49114c
jmp dword [eax*4 + 0x49156c]
test ebx, ebx
je 0x491265
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x20]
push eax
push ecx
push edx
push ebx
lea eax, [ebp - 0x248]
push str.hGuiWndx_08X__Stylex_08X__StyleExx_08X__Prev_i__i__i__i__Back_i__i__i__i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
jmp case.default.0x49114c
mov ecx, dword [ebp + 0x18]
push 0x103
push ecx
lea edx, [ebp - 0x248]
push edx
mov edi, 0x501068
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp case.default.0x49114c
test ebx, ebx
je 0x491265
push 0x102
lea eax, [ebp - 0x248]
push eax
push ebx
mov edi, str.Class
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp case.default.0x49114c
test ebx, ebx
je 0x491265
push 0x102
lea ecx, [ebp - 0x248]
push ecx
push ebx
mov edi, str.Title
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x4e82f4
push 0x410
lea edx, [ebp - 0xa68]
push edx
call fcn.004017b0
test edi, edi
je 0x49124a
push edi
push 0x410
lea eax, [ebp - 0xa68]
push eax
call fcn.004017b0
push 0x501064
push 0x410
lea ecx, [ebp - 0xa68]
push ecx
call fcn.004017b0
lea edx, [ebp - 0x248]
push edx
push 0x410
lea eax, [ebp - 0xa68]
push eax
call fcn.004017b0
mov eax, dword [ebp + 0xc]
inc eax
cmp eax, 3
mov dword [ebp + 0xc], eax
jle 0x491120
push 1
push 1
lea ecx, [ebp - 0xa68]
push ecx
mov ecx, dword [0x52fe2c]
call fcn.00409280
mov edi, dword [ebp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp dword [esi + 0x10], 0
jne 0x4912b0
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [esi + 0x30], edx
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ecx
mov dword [esi + 0x2c], eax
call fcn.004c62c0
add esp, 4
push eax
push edi
push ebx
mov ecx, esi
call fcn.00489a00
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov byte [esi + 0x40], 0
call fcn.0048c820
mov ecx, dword [esi]
add ecx, 8
call fcn.004b32e0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
test eax, eax
je 0x491316
push 0
push eax
call fcn.004b6cc0
add esp, 8
test al, al
je 0x491316
mov ecx, dword [esi + 0x41f0]
call fcn.00481000
push 0x698
lea ecx, [ebp - 0x2ca0]
push 0x2e
push ecx
call fcn.0042b5c0
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov eax, dword [0x52fe14]
add esp, 0xc
add ecx, 8
mov dword [ebp - 0x2c70], edx
mov dword [ebp - 0x2c60], eax
call fcn.004b32e0
mov ecx, dword [esi]
add ecx, 8
mov dword [ebp - 0x2c5c], eax
call fcn.004b32f0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c58], eax
xor eax, eax
mov dword [ebp - 0x2c30], eax
mov dword [ebp - 0x2c2c], eax
mov dword [ebp - 0x2c28], eax
mov dword [ebp - 0x2c24], eax
lea eax, [esi + 0x50]
push eax
lea eax, [ebp - 0x2c30]
push eax
push edx
push ecx
mov dword [ebp - 0x2c54], ebx
mov dword [ebp - 0x2c38], ecx
mov dword [ebp - 0x2c34], edx
call fcn.00488ea0
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov dword [ebp - 0x2c6c], edi
test eax, eax
je 0x4913c4
push eax
lea ecx, [ebp - 0x2a18]
push ecx
call fcn.00412a30
add esp, 8
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
cmp dword [esi + 0xb78], 0
mov edi, eax
je 0x4913eb
cmp dword [esi + 0x940], 0
jne 0x4913eb
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x95c]
test eax, eax
jne 0x4913fb
mov eax, dword [esi + 0x940]
mov edx, dword [0x52fe14]
push 0
push 0
push edx
lea ecx, [ebp - 0x2ca0]
push ecx
push eax
call fcn.0042be80
add esp, 0x14
push eax
push str.ExecuteSrvCmd
mov dword [ebp - 0x24], eax
call ebx
mov ecx, dword [0x52fe34]
sub eax, edi
push eax
push edi
push 0
lea edx, [ebp - 0x2ca0]
push edx
call fcn.0045b3f0
cmp dword [ebp - 0x24], 0
je 0x49144b
lea eax, [ebp - 0x24]
push eax
call fcn.0042b550
add esp, 4
cmp dword [esi + 0x10], 0
je 0x49154a
mov ecx, dword [esi]
add ecx, 8
mov byte [esi + 0x42], 1
call fcn.004b32e0
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x40]
mov edi, eax
push ecx
push edi
call ebx
push 2
lea edx, [ebp - 0x40]
push edx
push edi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.USER32.dll_ValidateRect]
mov edx, dword [esi + 0x10]
lea ecx, [ebp + 8]
push ecx
push edx
mov dword [ebp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ecx, dword [esi + 0x10]
push ecx
call fcn.004c57c0
mov ecx, dword [esi]
add esp, 4
add ecx, 8
call fcn.004b32f0
xor ecx, ecx
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
call ebx
mov ecx, dword [ebp - 0x2c2c]
mov eax, dword [ebp - 0x2c30]
add dword [ebp - 0x18], ecx
add dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c28]
mov eax, dword [ebp - 0x2c24]
add dword [ebp - 0x14], edx
add dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00488e20
mov edx, dword [esi + 0x10]
push 0x3ff
lea edi, [esi + 0x1198]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esi + 0x219c]
push edi
push eax
call fcn.0048d220
xor ecx, ecx
mov word [esi + 0x2a5c], cx
mov dword [esi + 0x34dc], ecx
add esp, 8
mov ecx, esi
call fcn.00490c70
mov ecx, dword [esi]
push 1
call fcn.004be070
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x28