Function at 0x10001250
Capabilities:
Get graphical window text
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100217c8
push 0x10007be0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1018
call fcn.10018c50
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1028], ecx
xor eax, eax
mov dword [ebp - 0x1020], eax
call fcn.10002ac0
mov ebx, eax
mov dword [ebp - 0x1030], ebx
mov dword [ebp - 0x102c], edx
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.100082f0
push ebx
push 0x100209b0
lea eax, [ebp - 0x101c]
push eax
call fcn.10002d50
add esp, 0x18
lea eax, [ebp - 0x101c]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
nop
mov eax, dword [0x10024688]
test eax, eax
jg 0x100012fd
xor eax, eax
jmp 0x100012ff
mov eax, dword [eax]
test eax, eax
jg 0x10001307
xor eax, eax
jmp 0x1000130a
mov eax, dword [eax + 0x5c]
test eax, eax
jg 0x10001312
xor eax, eax
jmp 0x10001314
mov eax, dword [eax]
test eax, eax
jg 0x1000131c
xor edi, edi
jmp 0x1000131f
mov edi, dword [eax + 0x3c]
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.100082f0
push edi
push str.GameState__d
lea eax, [ebp - 0x101c]
push eax
call fcn.10002d50
add esp, 0x18
lea eax, [ebp - 0x101c]
push eax
call ebx
cmp edi, 1
jne 0x100013af
call fcn.10002ac0
mov dword [ebp - 0x1024], eax
mov ebx, edx
cmp dword [ebp - 0x1030], eax
je 0x100013cb
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.100082f0
push 0x100209c0
lea eax, [ebp - 0x101c]
push eax
call fcn.10002d50
add esp, 0x14
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0xd
push 0x440
push dword [0x10024ebc]
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000336a
mov esp, ebp
pop ebp
ret
push 0
push 6
push 0x440
push dword [0x10024ebc]
call esi
cmp eax, 2
jne 0x10001471
push 0
push 0xa
push 0x440
push dword [0x10024ebc]
call esi
mov edi, eax
cmp edi, 0x2710
jge 0x1000142d
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.100082f0
push edi
push 0x100209d0
lea eax, [ebp - 0x101c]
push eax
call fcn.10002d50
add esp, 0x18
jmp 0x10001391
mov eax, dword [ebp - 0x1028]
cmp dword [eax], 0
je 0x10001456
test ebx, ebx
je 0x10001471
cmp ebx, 2
je 0x10001471
mov eax, dword [ebp - 0x1030]
push 0
cmp eax, dword [ebp - 0x1024]
je 0x10001458
jmp 0x100013a0
push 0
push 7
push 0x440
push dword [0x10024ebc]
call esi
xor ebx, ebx
mov dword [ebp - 0x1020], ebx
jmp 0x10001477
mov ebx, dword [ebp - 0x1020]
push 0
push 8
push 0x440
push dword [0x10024ebc]
call esi
cmp eax, 0x64
jne 0x100015b0
push 0
push 9
push 0x440
push dword [0x10024ebc]
call esi
test eax, eax
je 0x100015b0
push 0
push 0xa
push 0x440
push dword [0x10024ebc]
call esi
mov edi, eax
cmp ebx, edi
je 0x100015b0
mov ebx, edi
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1024], ebx
cmp edi, 0x2710
jl 0x100015b0
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.100082f0
push edi
push 0x100209e8
lea eax, [ebp - 0x101c]
push eax
call fcn.10002d50
add esp, 0x18
lea eax, [ebp - 0x101c]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1028]
cmp dword [eax], 0
jne 0x10001552
mov ecx, 0x100209f8
call fcn.10002cf0
push 0
push 0xb
push 0x440
push dword [0x10024ebc]
call esi
push 0xc8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
jmp 0x10001558
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x10020a00
call fcn.10002cf0
push 0
push 0xc
push 0x440
push dword [0x10024ebc]
call esi
push 0x3e8
call edi
mov dword [ebp - 4], 0xfffffffe
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100012f0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100012f0