Function at 0x42a820
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x464ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
call fcn.00430c11
mov eax, dword [esi + 0x20]
push 1
push 0
push 0
push 0xc8
push 0x226
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
mov dword [esp + 0x18], ebp
call fcn.0042eec8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42a89d
push 0x80004005
call fcn.004020f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 0
test ebp, ebp
je 0x42aab8
jmp 0x42a8c4
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0xff
or eax, ecx
jge 0x42a8ea
push 0xff
lea ecx, [esp + 0x20]
call fcn.00401ef0
mov ebx, dword [esp + 0x1c]
push 0x104
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp dword [ebx - 0xc], 0
jl 0x42aaa3
push str.WSGAME
push ebx
call fcn.0044d4ee
add esp, 8
test eax, eax
je 0x42aaa3
sub eax, ebx
js 0x42aaa3
push str.00000000000000000000000000000000000000000000000000000000
lea ecx, [esp + 0x18]
call fcn.0042a2b0
mov byte [esp + 0x34], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x42a95c
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401ef0
mov edx, dword [esp + 0x14]
push 0x104
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0x14
jge 0x42a978
or eax, 0xffffffff
jmp 0x42a998
add ecx, 0x14
push 0x46e614
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x42a996
or eax, 0xffffffff
jmp 0x42a998
sub eax, ecx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
test esi, esi
jl 0x42a9c0
cmp esi, eax
jg 0x42a9c0
add ecx, esi
push 0x46e618
push ecx
call fcn.0044d4ee
add esp, 8
test eax, eax
je 0x42a9c0
sub eax, dword [esp + 0x14]
jmp 0x42a9c3
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.004286a0
mov byte [esp + 0x34], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x42aa35
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42aa27
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42aa27
push eax
call fcn.00429de0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42aa1a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
jmp 0x42aa35
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401fa0
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aa5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push 0x403
call fcn.0043902b
mov ecx, dword [eax + 0x20]
push esi
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42aaa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x42a8c0
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aadc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret