Function at 0x49ef20
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x7dc7e4]
sub esp, 0x80
push ebx
xor ebx, ebx
push ebp
push esi
sub eax, ebx
push edi
je 0x49f1b4
dec eax
je 0x49f014
dec eax
jne 0x49f234
mov edi, dword [0x7dc7d0]
xor esi, esi
mov ecx, edi
call fcn.004a01a0
test eax, eax
jl 0x49f0e8
mov edi, dword [0x7dc7d0]
cmp dword [edi + 8], ebx
jne 0x49ef78
cmp esi, 2
je 0x49f0e8
inc esi
cmp esi, 3
jl 0x49ef4f
mov ecx, dword [edi + 8]
xor ebp, ebp
cmp ecx, ebx
jle 0x49f0e8
add edi, 0x20b4
mov esi, str.houseordead
mov eax, edi
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [esi]
jne 0x49efb6
test dl, dl
je 0x49efb2
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x49efb6
add eax, 2
add esi, 2
test dl, dl
jne 0x49ef92
xor eax, eax
jmp 0x49efbb
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
je 0x49efd1
inc ebp
add edi, 0x104
cmp ebp, ecx
jl 0x49ef8b
jmp 0x49f0e8
mov eax, dword [0x7dc7fc]
mov ecx, dword [0x7dc7d0]
push eax
call fcn.004a0300
test eax, eax
jl 0x49f0e8
mov ecx, dword [0x7dc7d0]
push str.Player2
push str.Player2
call fcn.004a0820
pop edi
pop esi
mov dword [0x7dc7c8], eax
pop ebp
mov eax, 6
pop ebx
add esp, 0x80
ret
cmp dword [0x7dc800], ebx
je 0x49f034
push 9
push ebx
call fcn.0049e680
mov ecx, dword [0x7dc800]
add esp, 8
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x1a
push ebx
call fcn.0049e680
mov dl, byte [0x7dc814]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, dword [0x7dc800]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x10]
push edx
push 0x150
push 0xaa
call fcn.0049f250
mov al, byte [0x9c72a8]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
test al, 0xc
je 0x49f167
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49f15a
push 0x3416a9
call fcn.0041d0a0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [0x5971a4]
push eax
push ecx
mov ecx, dword [0x7dc7d0]
call fcn.004a03e0
test eax, eax
jge 0x49f123
mov eax, dword [0x7dc804]
cmp eax, ebx
je 0x49f113
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x7dc7c4]
mov eax, dword [0x7dc804]
push edx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x7dc804], ebx
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x80
ret
mov eax, dword [0x7dc800]
cmp eax, ebx
je 0x49f152
push eax
call ebp
mov ecx, dword [0x7dc7c4]
mov edx, dword [0x7dc800]
push ecx
push 0xfffffffffffffffc
push edx
call esi
push 7
push ebx
mov dword [0x7dc800], ebx
call fcn.0049e680
add esp, 8
inc dword [0x7dc7e4]
jmp 0x49f167
push 0x500a9
call fcn.0041d0a0
add esp, 4
test byte [0x9c72a8], 2
je 0x49f234
mov eax, dword [0x7dc800]
cmp eax, ebx
je 0x49f197
push eax
call ebp
mov eax, dword [0x7dc7c4]
mov ecx, dword [0x7dc800]
push eax
push 0xfffffffffffffffc
push ecx
call esi
mov dword [0x7dc800], ebx
push 0x500a9
call fcn.0041d0a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov edx, dword [0x7dc8b0]
mov eax, dword [0x7dc8ac]
push ebx
push edx
push ebx
push eax
push 0x20
push 0x140
push 0x150
push 0xaa
push 0x50000000
push ebx
push str.edit
push ebx
mov dword [0x7dc7fc], ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x7dc7d4]
push 1
push ecx
push 0x30
push eax
mov dword [0x7dc800], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x7dc800]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x7dc800]
push 0x49f2e0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x7dc7c4], eax
mov eax, dword [0x7dc7e4]
inc eax
mov dword [0x7dc7e4], eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret