Function at 0x1020247
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], ecx
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], ecx
mov edi, 0x10037f0
jne 0x10202e9
lea eax, [ebp - 0x240]
push eax
push dword [ebx]
mov dword [ebp - 0x224], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x10202e9
call esi
push eax
call int.01009d20
push 0
push eax
push 0x1d
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], 0
jl 0x102058c
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x230], ebx
jne 0x1020315
call esi
push eax
call int.01009d20
push ebx
push eax
push 0x28
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], 0
jl 0x102058c
inc ebx
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100d5aa
test eax, eax
pop ecx
mov dword [ebp - 0x214], eax
jne 0x102035a
push 0
mov eax, 0x8007000e
push eax
push 0x33
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], 0
jl 0x102058c
mov eax, dword [ebp - 0x21c]
push ebx
push dword [ebp - 0x214]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1020399
call esi
push eax
call int.01009d20
push 0
push eax
push 0x3c
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], 0
jl 0x102058c
mov eax, dword [ebp - 0x21c]
push dword [eax]
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [ebp - 0x218], eax
jne 0x10203d7
call esi
push eax
call int.01009d20
push 0
push eax
push 0x47
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], 0
jl 0x102058c
xor ebx, ebx
cmp dword [ebp - 0x220], ebx
jne 0x102040a
mov eax, dword [ebp - 0x21c]
push ebx
push ebx
push 0x31
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x1020422
push dword [ebp - 0x220]
push dword [ebp - 0x218]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x22c], eax
cmp byte [ebp + 0x18], 0
je 0x1020492
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
lea eax, [ebp - 0x214]
push ecx
push dword [ebp - 0x218]
push eax
call fcn.0101fea6
push ebx
push eax
push 0x5a
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], ebx
jl 0x102058c
push dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x1020492
call esi
push eax
call int.01009d20
push ebx
push eax
push 0x61
push edi
mov dword [ebp - 0x210], eax
call fcn.0101c3d2
cmp dword [ebp - 0x210], ebx
jl 0x102058c
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.0100ddf9
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x21c]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x102054a
push esi
lea eax, [ebp - 0x20c]
push 0x10037fc
push eax
call fcn.01029af6
add esp, 0xc
test eax, eax
jne 0x102054a
mov ebx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x230]
lea edx, [ebx + ecx*2 + 2]
cmp ebx, edx
mov eax, ebx
mov esi, ebx
jae 0x1020525
movzx ecx, word [eax]
cmp cx, di
je 0x1020525
cmp cx, 0x3c
je 0x102053e
mov word [esi], cx
inc esi
inc esi
inc eax
inc eax
cmp eax, edx
jb 0x102050c
cmp esi, edx
ja 0x1020550
mov word [esi], di
jmp 0x1020550
movzx ecx, word [eax]
cmp cx, di
je 0x1020542
cmp cx, 0x3e
je 0x1020542
inc eax
inc eax
cmp eax, edx
jb 0x102052e
cmp word [eax], 0x3e
jne 0x1020525
jmp 0x102051f
mov ebx, dword [ebp - 0x214]
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1020565
push 0x410
push dword [ebp - 0x228]
sub eax, ecx
sar eax, 1
push eax
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x220], 0
pop edi
pop esi
pop ebx
je 0x10205aa
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x218], 0
je 0x10205c7
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push dword [eax]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x214]
call fcn.0100dd74
mov eax, dword [ebp - 0x210]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d61a
leave
ret 0x14