Function at 0x49e380
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x7de3ac]
sub esp, 0x80
push ebx
xor ebx, ebx
push ebp
push esi
sub eax, ebx
push edi
je 0x49e614
dec eax
je 0x49e474
dec eax
jne 0x49e694
mov edi, dword [0x7de398]
xor esi, esi
mov ecx, edi
call fcn.0049f5f0
test eax, eax
jl 0x49e548
mov edi, dword [0x7de398]
cmp dword [edi + 8], ebx
jne 0x49e3d8
cmp esi, 2
je 0x49e548
inc esi
cmp esi, 3
jl 0x49e3af
mov ecx, dword [edi + 8]
xor ebp, ebp
cmp ecx, ebx
jle 0x49e548
add edi, 0x20b4
mov esi, str.houseordead
mov eax, edi
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [esi]
jne 0x49e416
test dl, dl
je 0x49e412
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x49e416
add eax, 2
add esi, 2
test dl, dl
jne 0x49e3f2
xor eax, eax
jmp 0x49e41b
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
je 0x49e431
inc ebp
add edi, 0x104
cmp ebp, ecx
jl 0x49e3eb
jmp 0x49e548
mov eax, dword [0x7de3c4]
mov ecx, dword [0x7de398]
push eax
call fcn.0049f750
test eax, eax
jl 0x49e548
mov ecx, dword [0x7de398]
push str.Player2
push str.Player2
call fcn.0049fc70
pop edi
pop esi
mov dword [0x7de390], eax
pop ebp
mov eax, 6
pop ebx
add esp, 0x80
ret
cmp dword [0x7de3c8], ebx
je 0x49e494
push 9
push ebx
call fcn.0049dae0
mov ecx, dword [0x7de3c8]
add esp, 8
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x1a
push ebx
call fcn.0049dae0
mov dl, byte [0x7de3dc]
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 [0x7de3c8]
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.0049e6b0
mov al, byte [0x9c8e48]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
test al, 0xc
je 0x49e5c7
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49e5ba
push 0x3416a9
call fcn.0041d1f0
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 [0x596e5c]
push eax
push ecx
mov ecx, dword [0x7de398]
call fcn.0049f830
test eax, eax
jge 0x49e583
mov eax, dword [0x7de3cc]
cmp eax, ebx
je 0x49e573
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x7de38c]
mov eax, dword [0x7de3cc]
push edx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x7de3cc], ebx
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x80
ret
mov eax, dword [0x7de3c8]
cmp eax, ebx
je 0x49e5b2
push eax
call ebp
mov ecx, dword [0x7de38c]
mov edx, dword [0x7de3c8]
push ecx
push 0xfffffffffffffffc
push edx
call esi
push 7
push ebx
mov dword [0x7de3c8], ebx
call fcn.0049dae0
add esp, 8
inc dword [0x7de3ac]
jmp 0x49e5c7
push 0x500a9
call fcn.0041d1f0
add esp, 4
test byte [0x9c8e48], 2
je 0x49e694
mov eax, dword [0x7de3c8]
cmp eax, ebx
je 0x49e5f7
push eax
call ebp
mov eax, dword [0x7de38c]
mov ecx, dword [0x7de3c8]
push eax
push 0xfffffffffffffffc
push ecx
call esi
mov dword [0x7de3c8], ebx
push 0x500a9
call fcn.0041d1f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov edx, dword [0x8106c0]
mov eax, dword [0x8106bc]
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 [0x7de3c4], ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x7de39c]
push 1
push ecx
push 0x30
push eax
mov dword [0x7de3c8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x7de3c8]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x7de3c8]
push 0x49e740
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x7de38c], eax
mov eax, dword [0x7de3ac]
inc eax
mov dword [0x7de3ac], eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret