Function at 0x4a04f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x50ce13
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
or eax, 0xffffffff
lea edi, [esi + 0xac]
mov dword [esp + 0x18], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [edi], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [esp + 0x19c]
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1a8]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x1ac]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x1b0]
cmp eax, ebx
lea ebp, [esi + 0xd8]
mov dword [esp + 0x194], ebx
mov dword [esi], vtable.WindowPrimarySurface.0
mov dword [ebp], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xcc], edx
je 0x4a061f
mov dword [edi], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [esi + 0xdc]
mov ecx, dword [eax]
push 0xc
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
je 0x4a0655
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x30
push 0x51d520
push str.Could_not_set_cooperative_level.
push ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4a07d4
xor eax, eax
cmp dword [esp + 0x1a0], ebx
je 0x4a062f
mov eax, 2
push ebx
push edi
push eax
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
je 0x4a05e4
push 0x30
push 0x51d4f4
push 0x51d4fc
push ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4a07d4
push 0x6c
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004c14b0
mov eax, dword [edi]
add esp, 0xc
push ebx
lea ecx, [esi + 0xa4]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x6c
mov dword [esp + 0x28], 1
mov dword [esp + 0x8c], 0x200
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
test eax, eax
je 0x4a06bf
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x30
push 0x51d54c
push str.Could_not_allocate_primary_surface.__Try_reinstalling_the_latest_version_of_DirectX_or_picking_a_lower_resolution.
push ebx
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4a07d4
push 0xa4
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x194], 1
je 0x4a06ec
mov ecx, dword [esi + 0xa4]
push ecx
mov ecx, eax
call fcn.0049b6a0
jmp 0x4a06ee
xor eax, eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esi + 0xc0], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 0x44]
push ebx
mov byte [esp + 0x1a4], bl
call eax
push 0xb8
call fcn.004c1ea3
add esp, 4
cmp eax, ebx
je 0x4a072c
mov ecx, dword [esi + 0xc0]
push ebx
push ecx
mov ecx, eax
call fcn.004a0460
jmp 0x4a072e
xor eax, eax
cmp dword [esi + 0xdc], ebx
mov dword [esi + 0xc4], eax
je 0x4a076e
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
push ebp
push ebx
push edi
call eax
mov edx, dword [esi + 0xdc]
mov eax, dword [ebp]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esi + 0xa4]
mov edx, dword [ebp]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x70]
call eax
mov ecx, esi
call fcn.0049d7b0
cmp dword [esi + 0xd0], ebx
je 0x4a07d4
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x4a07d4
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 0xdc]
and eax, 0xfff7ffff
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xdc]
push 0x100
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, esi
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004c118f
add esp, 0x184
ret 0x18