Function at 0x49b6e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, 0x513c45
mov eax, dword [ebp + 8]
push eax
call fcn.004eae80
mov esi, eax
test esi, esi
je 0x49ba9a
cmp dword [esi + 0x4b8], 0
jne 0x49b71e
push 0
call sub.USER32.dll_MessageBeep
jmp 0x49ba9a
push 0x5120fc
lea ebx, [esi + 4]
push ebx
call fcn.0049a3d4
push 0x5120fc
call fcn.0049a304
test eax, eax
jne 0x49b746
push 0
call sub.USER32.dll_MessageBeep
jmp 0x49ba9a
push esi
push edi
mov esi, 0x51f91f
mov edi, 0x515008
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 0x5120fc
push 0x51f91f
call fcn.0040123c
add esp, 8
push 7
push 0
push 0xe80
call fcn.0041f178
push eax
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.004d20cc
test eax, eax
je 0x49ba9a
push 0x2e
push 0x51fa9f
call fcn.00401278
add esp, 8
test eax, eax
jne 0x49b7ca
push 0x4fa18f
push 0x51fa9f
call fcn.0040123c
add esp, 8
push esi
push edi
mov esi, edi
mov edi, 0x51f91f
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 0x51fa9f
push edi
call fcn.0040123c
add esp, 8
push esi
push edi
mov esi, 0x5120fc
mov edi, 0x51fa9f
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 0
call fcn.0040ef0c
pop ecx
push eax
call fcn.0041f370
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x180
push 0
push 0x4901
push edi
call fcn.00406b7c
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [ebp - 0xc], 0
jge 0x49b877
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x49b9b7
cmp dword [ebp - 0x10], 0
je 0x49b8a4
mov edx, dword [ebp - 0x10]
push edx
push ebx
push 0
push 0xe81
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x49b8bb
push ebx
push 0
push 0xe82
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.00401318
pop ecx
mov ebx, eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.004066d0
add esp, 0xc
cmp ebx, eax
je 0x49b8dd
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x49b9b7
cmp byte [esi + 0x4cc], 2
jne 0x49b965
cmp byte [esi + 0x4cd], 1
jne 0x49b965
push 0
push 0xe83
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 8
push pe_nt_image_headers32
push edi
call fcn.00401318
pop ecx
add eax, edi
push eax
mov edx, dword [esi]
push edx
call sub.USER32.dll_GetWindowTextA
push 0x40
push edi
call fcn.00401278
add esp, 8
test eax, eax
je 0x49b965
push 0x4fa195
push edi
call fcn.0040123c
add esp, 8
push edi
call fcn.00401318
pop ecx
mov ebx, eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.004066d0
add esp, 0xc
cmp ebx, eax
je 0x49b965
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x49b9b7
mov eax, dword [esi + 0x4b8]
test eax, eax
je 0x49b9b7
mov edx, dword [eax + 0x30]
mov dword [ebp - 4], edx
mov ecx, dword [eax]
push ecx
push 0x4fa198
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.00401318
pop ecx
mov ebx, eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.004066d0
add esp, 0xc
cmp ebx, eax
je 0x49b9b0
mov dword [ebp - 8], 1
jmp 0x49b9b7
mov eax, dword [ebp - 4]
test eax, eax
jne 0x49b975
cmp dword [ebp - 0x10], 0
je 0x49b9dd
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [esi + 4]
push ecx
push 0
push 0xe84
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x49b9f7
lea eax, [esi + 4]
push eax
push 0
push 0xe85
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call fcn.00401318
pop ecx
mov ebx, eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.004066d0
add esp, 0xc
cmp ebx, eax
je 0x49ba19
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040471c
pop ecx
xor ecx, ecx
mov dword [0x4fb760], ecx
cmp dword [ebp - 8], 0
je 0x49ba68
push 0x5120fc
push 0
push 0xe86
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov eax, dword [0x4f29d8]
push eax
push edi
mov edx, dword [0x4fd9fc]
push edx
call fcn.004bd330
push 0
call sub.USER32.dll_MessageBeep
jmp 0x49ba9a
push 0x5120fc
add esi, 4
push esi
push 0
push 0xe87
call fcn.0041f178
push eax
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov eax, dword [0x4f29d8]
push eax
push edi
mov edx, dword [0x4fd9fc]
push edx
call fcn.004bd330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4