Function at 0x493a6c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 1
test ebx, ebx
je 0x493b60
cmp dword [0x5282e4], 0
je 0x493aa2
push 2
push ebx
call fcn.00406da8
test eax, eax
je 0x493aa2
push 3
push esi
call fcn.004070df
cmp dword [0x534d3c], 0
je 0x493abc
push 1
push 0x3e
push 0x531841
push esi
call fcn.004d67d1
mov edi, eax
test edi, edi
je 0x493b3f
push ebx
call fcn.004f7de3
test eax, eax
je 0x493b3f
xor eax, eax
mov dword [0x534c34], eax
mov dword [0x534c38], 2
mov dword [0x534c3c], 1
mov dword [0x534c40], 1
mov dword [0x534c44], 1
mov dword [0x534c48], 1
mov edx, dword [0x52a388]
mov dword [0x53138c], edx
mov ecx, dword [ebx]
mov dword [0x53139c], ecx
mov eax, dword [esi]
push dword [eax]
push 1
push 0
call fcn.00424462
push eax
push 0x531847
push 0x55319c
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 3
push esi
call fcn.0048f4e6
cmp dword [0x534d3c], 0
je 0x494003
push 0
push 0x3e
push 0x53184d
push esi
call fcn.004d67d1
jmp 0x494003
cmp dword [0x533f68], 0
je 0x493c6b
cmp dword [0x534d3c], 0
je 0x493b87
push 1
push 0x3e
push 0x531853
push esi
call fcn.004d67d1
mov edi, eax
test edi, edi
je 0x493c22
push 0
call fcn.00492ffd
push 1
push 0x55319c
push dword [esi + 0x3f8]
push dword [0x537448]
call fcn.004f9c59
push eax
push esi
call fcn.004930fb
xor eax, eax
mov dword [0x534c34], eax
mov dword [0x534c38], 2
mov dword [0x534c3c], 1
mov dword [0x534c40], 1
mov dword [0x534c44], 1
mov dword [0x534c48], 1
mov edx, dword [0x52a388]
mov dword [0x53138c], edx
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0
call fcn.00424462
push eax
push 0x531859
push 0x55319c
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 3
push esi
call fcn.0048f4e6
cmp dword [0x5282e4], 0
je 0x493c4a
push 2
push dword [0x53139c]
call fcn.004f9c59
push eax
call fcn.00406da8
test eax, eax
je 0x493c4a
push 3
push esi
call fcn.004070df
cmp dword [0x534d3c], 0
je 0x494003
push 0
push 0x3e
push 0x53185f
push esi
call fcn.004d67d1
jmp 0x494003
cmp dword [0x533fa8], 0
je 0x493d72
push dword [0x53742c]
call fcn.004f9c59
mov ebx, eax
test ebx, ebx
je 0x493d72
cmp byte [ebx + 0x638], 1
jne 0x493d72
cmp dword [0x5282e4], 0
je 0x493cb4
cmp dword [0x528218], 0
je 0x493cb4
push 3
push esi
call fcn.004070df
cmp dword [0x534d3c], 0
je 0x493cce
push 1
push 0x3e
push 0x531865
push esi
call fcn.004d67d1
mov edi, eax
test edi, edi
je 0x493d51
push ebx
call fcn.004f7de3
test eax, eax
je 0x493d51
xor eax, eax
mov dword [0x534c34], eax
mov dword [0x534c38], 2
mov dword [0x534c3c], 1
mov dword [0x534c40], 1
mov dword [0x534c44], 1
mov dword [0x534c48], 1
mov edx, dword [0x52a38c]
mov dword [0x53138c], edx
mov ecx, dword [ebx]
mov dword [0x53139c], ecx
mov eax, dword [esi]
push dword [eax]
push 1
push 0
call fcn.00424462
push eax
push str._s
push 0x55319c
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 3
push esi
call fcn.0048f4e6
cmp dword [0x534d3c], 0
je 0x494003
push 0
push 0x3e
push 0x531871
push esi
call fcn.004d67d1
jmp 0x494003
cmp dword [0x534d3c], 0
je 0x493da7
xor edx, edx
mov dword [0x52d134], edx
push 1
push 0x2b
push 0x531877
push esi
call fcn.004d67d1
test eax, eax
jne 0x493d98
xor edi, edi
xor eax, eax
mov dword [0x52d134], eax
test edi, edi
je 0x494003
mov edx, dword [esi]
mov ecx, dword [edx]
push esi
push edi
mov edi, ecx
mov esi, 0x55319c
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x55319c
call fcn.004f9bfc
mov ebx, eax
test ebx, ebx
je 0x493dec
mov eax, dword [ebx]
mov dword [0x53139c], eax
jmp 0x493e0c
push 0
push 1
push 2
push 0x55319c
call fcn.004fd21f
mov ebx, eax
mov dword [0x53139c], ebx
test ebx, ebx
je 0x494003
push dword [0x53139c]
call fcn.004f9c59
mov ebx, eax
test ebx, ebx
je 0x493e90
push 1
push 0x55319c
push dword [esi + 0x3f8]
push ebx
push esi
call fcn.004930fb
cmp byte [ebx + 0x638], 2
jne 0x493e90
cmp byte [ebx + 0x639], 1
jne 0x493e90
push 0x5535b5
push 0xdca
call fcn.00415c87
push 0x104
push 0x5535b5
call fcn.005183dc
pop ecx
add eax, 0x5535b5
push eax
push dword [ebx]
call sub.USER32.dll_GetWindowTextA
push 0x40
push 0x5535b5
call fcn.0051833c
add esp, 8
test eax, eax
je 0x493e90
push 0
push 0x5535b5
push ebx
call fcn.0049f901
cmp dword [0x533f50], 0
je 0x493ecf
push 0x55319c
mov eax, dword [esi]
push dword [eax]
push dword [0x53139c]
call fcn.0048f12e
mov edx, dword [esi]
push dword [edx]
push 0x53187d
push 0x55319c
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x55319c
call fcn.004fe9da
cmp dword [0x533f74], 0
je 0x493f0d
cmp dword [0x53427c], 1
jne 0x493eee
push dword [0x533f80]
call fcn.00415bb8
jmp 0x493f0d
cmp dword [0x53427c], 2
jne 0x493f0d
push 1
push 0x5535b5
push 0
push 0
call fcn.004595a0
push eax
call fcn.004e4326
cmp dword [0x533f6c], 0
je 0x493f1c
push ebx
call fcn.004932aa
cmp dword [0x5282e4], 0
je 0x493f39
push 2
push ebx
call fcn.00406da8
test eax, eax
je 0x493f39
push 3
push esi
call fcn.004070df
cmp dword [0x534d3c], 0
je 0x493f60
xor ecx, ecx
mov dword [0x52d134], ecx
push 0
push 0x2b
push 0x531888
push esi
call fcn.004d67d1
xor eax, eax
mov dword [0x52d134], eax
cmp dword [0x534d3c], 0
je 0x493f7a
push 1
push 0x3e
push 0x53188e
push esi
call fcn.004d67d1
mov edi, eax
test edi, edi
je 0x493feb
xor eax, eax
mov dword [0x534c34], eax
mov dword [0x534c38], 2
mov dword [0x534c3c], 1
mov dword [0x534c40], 1
mov dword [0x534c44], 1
mov dword [0x534c48], 1
mov edx, dword [0x52a388]
mov dword [0x53138c], edx
mov ecx, dword [esi]
push dword [ecx]
push 1
push 0
call fcn.00424462
push eax
push 0x531894
push 0x55319c
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 3
push esi
call fcn.0048f4e6
cmp dword [0x534d3c], 0
je 0x494003
push 0
push 0x3e
push 0x53189a
push esi
call fcn.004d67d1
pop edi
pop esi
pop ebx
pop ebp
ret 8