Function at 0x4d9c0c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4d9c14
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4da3cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x41c]
xor edx, edx
call fcn.00490218
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x4b4], 0
mov eax, dword [0x4eab7c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4eab34]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x4a8], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c4]
xor edx, edx
call fcn.004bb2a8
mov eax, dword [0x4eab70]
mov eax, dword [eax]
xor edx, edx
call fcn.004d548c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c0]
cmp byte [eax + 0x38], 0
je 0x4d9d55
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c0], 0
je 0x4d9d55
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c4], 0
je 0x4d9d55
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4c4]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x4c0]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x4bc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4b8]
call fcn.004d41ac
test al, al
jne 0x4d9d55
mov eax, dword [0x4eaf2c]
cmp dword [eax], 0xa
jne 0x4d9d55
call fcn.004d65d8
mov eax, dword [0x4eaffc]
mov eax, dword [eax]
push eax
push 3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4b8]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4bc]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4c0]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4c4]
push eax
push 0
mov edx, dword [0x4eb020]
mov edx, dword [edx]
mov eax, dword [0x4eada4]
mov eax, dword [eax]
mov ecx, 0xa
call fcn.004d5ca0
call fcn.004d65f0
jmp 0x4d9d8c
call fcn.004d65d8
mov eax, dword [0x4eaffc]
mov eax, dword [eax]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [0x4eb020]
mov edx, dword [edx]
mov eax, dword [0x4eada4]
mov eax, dword [eax]
mov ecx, 0xa
call fcn.004d5ca0
call fcn.004d65f0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [0x4eab34]
mov eax, dword [eax]
call fcn.004d3874
mov eax, dword [0x4eab34]
cmp dword [eax], 0
je 0x4d9db6
cmp dword [ebp - 0x14], 0
jne 0x4d9f34
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3a0]
push dword [eax + 0x34]
mov eax, 0xea60
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x4a4], eax
call sub.user32.dll_GetDesktopWindow
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], 0
push 5
mov eax, dword [ebp - 0x34]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4d9efb
call fcn.004d65d8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004d3874
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x4eab24]
mov eax, dword [eax]
mov eax, dword [eax + 0x38c]
mov eax, dword [eax + 0x280]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4d9e6d
inc esi
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
mov eax, dword [0x4eab24]
mov eax, dword [eax]
mov eax, dword [eax + 0x38c]
mov eax, dword [eax + 0x280]
mov edx, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x40]
call fcn.004d2c30
cmp ebx, eax
jne 0x4d9e67
inc dword [ebp - 0x30]
inc dword [ebp - 0x2c]
dec esi
jne 0x4d9e3a
lea edx, [ebp - 0x48]
mov eax, dword [0x4eac90]
mov eax, dword [eax]
call fcn.00412e44
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00411650
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00412e44
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00411650
mov edx, dword [ebp - 0x4c]
pop eax
call fcn.00407138
jne 0x4d9ee4
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d9ee4
push 4
push ebx
call sub.user32.dll_GetWindow
test eax, eax
jne 0x4d9ee4
cmp dword [ebp - 0x14], 0
je 0x4d9ee4
cmp dword [ebp - 0x30], 0
jne 0x4d9ee4
mov byte [ebp - 0x35], 1
mov eax, dword [0x4eab34]
mov dword [eax], ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406ab4
call fcn.004d65f0
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4d9df8
mov eax, dword [0x4eae70]
mov eax, dword [eax]
call fcn.00487948
cmp byte [ebp - 0x35], 0
jne 0x4d9f29
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4a4], 0
je 0x4d9f29
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x4b4], 0
je 0x4d9ddf
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x4a4], edx
mov eax, dword [0x4eab34]
cmp dword [eax], 0
jne 0x4d9fb3
xor ebx, ebx
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x4b4], 0
jne 0x4d9fa6
mov eax, dword [0x4eac90]
push dword [eax]
push 0x4da3ec
push 0x4da3fc
push 0x4da410
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407018
lea eax, [ebp - 8]
mov edx, 0x4da434
call fcn.00406ab4
push 0x1010
mov eax, dword [ebp - 8]
call fcn.00406aec
push eax
mov eax, dword [ebp - 4]
call fcn.00406aec
mov edx, eax
mov eax, dword [0x4eae70]
mov eax, dword [eax]
pop ecx
call fcn.00487e08
jmp 0x4da365
mov eax, dword [ebp - 0x18]
call fcn.00482ab0
jmp 0x4da365
lea edx, [ebp - 0x54]
mov eax, dword [0x4eac90]
mov eax, dword [eax]
call fcn.00411650
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.00411650
mov edx, dword [ebp - 0x58]
pop eax
call fcn.00407138
je 0x4da14b
mov eax, dword [0x4eadd0]
cmp byte [eax], 0
je 0x4da14b
push 0x4da464
mov eax, dword [0x4eac90]
push dword [eax]
push 0x4da484
push 0x4da3fc
push dword [ebp - 0xc]
push 0x4da498
push 0x4da3fc
push 0x4da4a8
lea eax, [ebp - 4]
mov edx, 8
call fcn.00407018
lea eax, [ebp - 8]
mov edx, 0x4da434
call fcn.00406ab4
push 0x24
mov eax, dword [ebp - 8]
call fcn.00406aec
push eax
mov eax, dword [ebp - 4]
call fcn.00406aec
mov edx, eax
mov eax, dword [0x4eae70]
mov eax, dword [eax]
pop ecx
call fcn.00487e08
cmp eax, 6
jne 0x4da14b
mov eax, dword [0x4eac90]
mov edx, dword [ebp - 0xc]
call fcn.00406a60
call fcn.0041cb80
push eax
mov ecx, dword [0x4eaf58]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x443788]
call fcn.00445040
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4da0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4eac90]
mov eax, dword [eax]
push eax
mov ecx, 0x4da4c4
mov edx, 0x4da4dc
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da0d2
mov eax, dword [ebp - 0x3c]
call fcn.00404e3c
ret
mov bl, 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c0]
cmp byte [eax + 0x38], 0
je 0x4da26a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c0], 0
je 0x4da26a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c4], 0
je 0x4da26a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4c4]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x4c0]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x4bc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4b8]
call fcn.004d41ac
test al, al
jne 0x4da26a
mov eax, dword [0x4eaf2c]
cmp dword [eax], 0xa
jne 0x4da26a
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4da26a
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsZoomed
test eax, eax
jne 0x4da26a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, dword [0x4eab34]
mov eax, dword [eax]
call fcn.004d3834
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4b8]
cmp eax, dword [ebp - 0x1c]
jne 0x4da23c
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4bc]
cmp edx, dword [ebp - 0x20]
jne 0x4da23c
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4c0]
cmp edx, dword [ebp - 0x24]
jne 0x4da23c
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4c4]
cmp edx, dword [ebp - 0x28]
je 0x4da26a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4c4]
push edx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4c0]
push edx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x4bc]
push edx
push eax
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_MoveWindow
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
lea eax, [ebp - 4]
call fcn.00406ddc
mov eax, dword [ebp - 4]
test eax, eax
je 0x4da29f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4da29f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040628c
mov esi, eax
test esi, esi
je 0x4da2aa
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 4]
call fcn.00406aec
push eax
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 4]
call fcn.00406aec
lea edx, [ebp - 0x5c]
call fcn.0041344c
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
add eax, 0x4b0
call fcn.00406a60
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4a0]
cmp eax, 0x64
jge 0x4da2fd
mov edx, eax
mov eax, dword [0x4eab34]
mov eax, dword [eax]
call fcn.004d06c8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x43c]
cmp byte [eax + 0x38], 0
je 0x4da318
mov eax, dword [0x4eab34]
mov eax, dword [eax]
call fcn.004d5b6c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x440]
cmp byte [eax + 0x38], 0
je 0x4da335
mov eax, dword [0x4eab34]
mov eax, dword [eax]
mov dl, 1
call fcn.004d3534
mov eax, dword [ebp - 0x18]
add eax, 0x4a8
push eax
mov eax, dword [0x4eab34]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [0x4eab7c]
mov eax, dword [eax]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4da365
mov eax, dword [0x4eab7c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x388]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c4]
mov edx, 1
call fcn.004bb2a8
mov eax, dword [0x4eab70]
mov eax, dword [eax]
mov edx, 1
call fcn.004d548c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x41c]
mov dl, 1
call fcn.00490218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da3d4
lea eax, [ebp - 0x5c]
mov edx, 8
call fcn.00406a58
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00406a58
ret