Function at 0x2108c17a
Capabilities:
Get graphical window text

Disassembly:
enter 0, 0
sub esp, 0x2098
push 0x1c
lea eax, [ebp - 0x2070]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
push 0x28
lea eax, [ebp - 0x2098]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov byte [ebp - 0x2048], 0
mov dword [ebp - 0x24], 0
push 0xb
lea eax, [ebp - 0x2052]
push eax
push dword [0x401014]
call sub.USER32.DLL_GetWindowTextA
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x40108c]
mov dword [ebp - 4], eax
mov eax, dword [0x401090]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], eax
jg 0x2108c57b
push 0x1c
lea eax, [ebp - 0x2070]
push eax
push dword [ebp - 4]
push dword [0x401088]
call sub.KERNEL32.DLL_VirtualQueryEx
cmp dword [ebp - 0x2060], 0x1000
jne 0x2108c567
cmp dword [ebp - 0x205c], 4
je 0x2108c22d
cmp dword [ebp - 0x205c], 0x40
jne 0x2108c567
xor edx, edx
xor eax, eax
mov ebx, dword [ebp - 0x2064]
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov ax, word [ebp - 0x10]
mov dx, word [ebp - 0xe]
mov bx, 0x1000
div bx
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0x2070]
mov dword [ebp - 8], eax
cmp word [ebp - 0x46], 0
je 0x2108c567
mov dword [ebp - 0x1c], 0
cmp word [ebp - 0x46], 1
jne 0x2108c3ea
push 0
push 0x1000
lea eax, [ebp - 0x1046]
push eax
push dword [ebp - 8]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
lea edi, [ebp - 0x1046]
mov dword [ebp - 0x18], 0x1000
cmp dword [ebp - 0x18], 0
je 0x2108c3e5
mov ax, word [ebp + 8]
cld
scasw ax, word es:[edi]
jne 0x2108c3d4
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jle 0x2108c301
mov edx, edi
cld
lea edi, [0x4011fc]
add edi, dword [0x4010e4]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
stosd dword es:[edi], eax
add dword [0x4010e4], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010e8]
mov al, 2
stosb byte es:[edi], al
inc dword [0x4010e8]
mov edi, edx
jmp 0x2108c3d4
push 0x28
lea eax, [ebp - 0x2098]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2098], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x2094], eax
mov dword [ebp - 0x2090], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x207c], 2
push dword [ebp - 0x20]
push 0x2108805f
lea eax, [ebp - 0x44]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2084], eax
lea eax, [ebp - 0x2098]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x2098]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x2098], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x2094], eax
mov dword [ebp - 0x2090], 1
lea eax, [ebp - 0x2052]
mov dword [ebp - 0x2084], eax
lea eax, [ebp - 0x2098]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
dec edi
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x18]
xor eax, eax
jmp 0x2108c29e
jmp 0x2108c557
push 0
push 0x1001
lea eax, [ebp - 0x2047]
push eax
push dword [ebp - 8]
push dword [0x401088]
call sub.KERNEL32.DLL_ReadProcessMemory
lea edi, [ebp - 0x2047]
mov dword [ebp - 0x18], 0x1000
cmp dword [ebp - 0x18], 0
je 0x2108c557
mov ax, word [ebp + 8]
cld
scasw ax, word es:[edi]
jne 0x2108c549
inc dword [0x4010e0]
cmp dword [0x4010e0], 0x64
jle 0x2108c476
mov edx, edi
cld
lea edi, [0x4011fc]
add edi, dword [0x4010e4]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
stosd dword es:[edi], eax
add dword [0x4010e4], 4
lea edi, [0x2a26bfc]
add edi, dword [0x4010e8]
mov al, 2
stosb byte es:[edi], al
inc dword [0x4010e8]
mov edi, edx
jmp 0x2108c549
push 0x28
lea eax, [ebp - 0x2098]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2098], 7
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x2094], eax
mov dword [ebp - 0x2090], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2078], eax
mov dword [ebp - 0x207c], 2
push dword [ebp - 0x20]
push 0x2108805f
lea eax, [ebp - 0x44]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2084], eax
lea eax, [ebp - 0x2098]
push eax
push 0
push 0x1007
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
push 0x28
lea eax, [ebp - 0x2098]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x2098], 1
mov eax, dword [0x4010e0]
dec eax
mov dword [ebp - 0x2094], eax
mov dword [ebp - 0x2090], 1
lea eax, [ebp - 0x2052]
mov dword [ebp - 0x2084], eax
lea eax, [ebp - 0x2098]
push eax
push 0
push 0x1006
push dword [0x40100c]
call sub.USER32.DLL_SendMessageA
dec edi
inc dword [ebp - 0x1c]
dec dword [ebp - 0x18]
xor eax, eax
jmp 0x2108c413
add dword [ebp - 8], 0x1000
dec word [ebp - 0x46]
jmp 0x2108c258
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x2064]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
jmp 0x2108c1e3
jmp 0x2108c580
leave
ret 4