Function at 0x4d9c20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7d0
push ebx
mov ebx, dword [esp + 0x7d8]
push ebx
call fcn.00582ac0
add esp, 4
test eax, eax
jne 0x4d9c4c
push eax
call fcn.005562e0
add esp, 4
pop ebx
add esp, 0x7d0
ret
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x3e7
push eax
call fcn.00423a00
mov eax, dword [ebx + 0x71c]
add esp, 8
sub eax, 0
je 0x4da0bd
dec eax
je 0x4d9f56
dec eax
jne 0x4da0e2
mov eax, dword [ebx + 0x720]
cmp eax, 1
jne 0x4d9e15
mov eax, dword [esp + 0x7e8]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
je 0x4d9d01
mov eax, dword [eax + 0xddc]
test eax, eax
je 0x4d9d01
cmp byte [eax], 0
je 0x4d9d01
push eax
lea edi, [ebx + 0x206]
push 0x64
push edi
call fcn.00423900
lea esi, [ebx + 8]
lea edx, [esp + 0x1c]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4d9cd0
mov ecx, dword [ebx + 0xbf4]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004d6e10
lea eax, [esp + 0x18]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d9cf5
jmp 0x4d9d8e
mov ecx, dword [ebx + 0xbf4]
push ecx
lea edx, [esp + 0x14]
push edx
lea esi, [ebx + 8]
push esi
call fcn.004a92c0
add esp, 0xc
test eax, eax
je 0x4d9e0e
lea eax, [esp + 0x10]
push 0x21
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4d9e0e
inc eax
je 0x4d9e0e
cmp byte [eax], 0
je 0x4d9e0e
push eax
lea edi, [ebx + 0x206]
push 0x64
push edi
call fcn.00423900
lea edx, [esp + 0x1c]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4d9d62
mov ecx, dword [ebx + 0xbf4]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004d6e10
lea eax, [esp + 0x18]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d9d87
sub eax, edx
push edi
lea eax, [esp + eax + 0x14]
push 0x5e6e4c
push eax
call ebp
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
jne 0x4da0ea
push esi
lea ecx, [esp + 0x14]
push 0x3e7
push ecx
call fcn.00423900
mov edx, dword [ebx + 0xbf4]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004d6e10
mov al, byte [ebx + 0x206]
lea edx, [ebx + 0x206]
add esp, 0x14
test al, al
je 0x4da0e2
lea eax, [esp + 0x10]
lea esi, [eax + 1]
jmp 0x4d9df0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d9df0
push edx
sub eax, esi
lea ecx, [esp + eax + 0x14]
push 0x5e6e4c
push ecx
call ebp
add esp, 0xc
jmp 0x4da0e2
mov byte [esp + 0x10], 0
jmp 0x4d9dac
cmp eax, 2
jne 0x4da0e2
mov esi, dword [esp + 0x7e8]
test esi, esi
je 0x4d9ee8
mov ecx, dword [esi]
test ecx, ecx
je 0x4d9ee8
mov eax, dword [esi + 0xddc]
test eax, eax
je 0x4d9ee8
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x5e8440
push edx
call edi
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x206]
push 0x64
push ecx
call fcn.00423900
mov edx, dword [str.Messages]
mov eax, dword [0x5ece60]
mov cl, byte [0x5ece64]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xbf4]
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x3c], cl
call fcn.004d6e10
mov ecx, dword [esi + 0xddc]
mov al, byte [ecx]
add esp, 0x24
test al, al
je 0x4d9ed1
lea eax, [esp + 0x10]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d9eb0
push ecx
mov ecx, dword [esi]
push ecx
sub eax, ebp
lea edx, [esp + eax + 0x18]
push str.___s__s_
push edx
call edi
add esp, 0x10
jmp 0x4da0e2
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x14]
push str.temp_strlen_temp_____s_
push ecx
call edi
add esp, 0xc
jmp 0x4da0e2
mov edx, dword [str.Messages]
mov eax, dword [0x5ece60]
mov cl, byte [0x5ece64]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0xbf4]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x20], cl
call fcn.004d6e10
mov al, byte [ebx + 0x206]
lea edx, [ebx + 0x206]
add esp, 8
test al, al
je 0x4da0e2
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d9f34
push edx
sub eax, esi
lea ecx, [esp + eax + 0x14]
push 0x5e6e4c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4da0e2
lea eax, [ebx + 8]
lea edx, [esp + 0x10]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4d9f60
mov edx, dword [ebx + 0xbf4]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004d6e10
mov eax, dword [ebx + 0x6b8]
add esp, 8
xor ecx, ecx
test eax, eax
je 0x4d9f98
lea ebx, [ebx]
mov eax, dword [eax + 0x40]
inc ecx
test eax, eax
jne 0x4d9f90
lea eax, [esp + 0x10]
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d9fa0
push ecx
sub eax, esi
lea ecx, [esp + eax + 0x14]
push 0x5e6e54
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov cl, byte [ebx + 0x10c]
lea eax, [ebx + 0x10c]
add esp, 0xc
test cl, cl
je 0x4da028
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4d9fd2
sub ecx, esi
cmp ecx, 3
jbe 0x4da028
lea edi, [esp + 0x10]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4d9fe5
mov dx, word [0x5e7420]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4da000
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4da010
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebx + 0x26a]
test cl, cl
lea eax, [ebx + 0x26a]
je 0x4da0e2
lea edx, [esp + 0x3f8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4da045
lea eax, [esp + 0x3f8]
push 0xf
push eax
call fcn.00551b90
mov al, byte [esp + 0x400]
add esp, 8
test al, al
je 0x4da0e2
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4da071
mov cx, word [0x5ece30]
mov dl, byte [0x5ece32]
mov word [edi], cx
lea eax, [esp + 0x3f8]
mov byte [edi + 2], dl
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4da095
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4da0a3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4da0e2
mov eax, dword [ebx + 0xbf4]
push eax
call fcn.004d6f30
push eax
lea ecx, [esp + 0x18]
push 0x3e7
push ecx
call fcn.00423900
push ebx
call fcn.00587d20
add esp, 0x14
mov al, byte [esp + 0x10]
test al, al
je 0x4da15b
lea edx, [esp + 0x3f8]
push 0x3e7
push edx
call fcn.00423a00
mov ecx, dword [ebx]
add esp, 8
push 0x3e7
lea eax, [esp + 0x3fc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea esi, [esp + 0x3f8]
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4da144
test cl, cl
je 0x4da140
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4da144
add eax, 2
add esi, 2
test cl, cl
jne 0x4da120
xor eax, eax
jmp 0x4da149
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4da15b
mov ecx, dword [ebx]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
call fcn.005562e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7d0
ret