Function at 0x1006e20
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1018690]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [0x1018e4c]
cmp eax, 1
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], eax
jne 0x1006ee9
push dword [ebp + 0xc]
xor ebx, ebx
push edi
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1007082
mov ax, word [edi]
cmp ax, 0x20
je 0x1006e79
cmp ax, 9
jne 0x1006e7d
inc edi
inc edi
jmp 0x1006e6a
cmp word [edi], bx
je 0x1006ea0
mov eax, edi
inc eax
inc eax
cmp word [eax], bx
jne 0x1006e84
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x20
je 0x1006e8b
cmp cx, 9
je 0x1006e8b
mov word [eax + 2], bx
cmp word [edi], 0
mov esi, edi
je 0x1006ed8
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1007082
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1007082
inc esi
inc esi
inc ebx
cmp word [esi], ax
jne 0x1006ea8
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
jmp 0x10071c5
xor edi, edi
push 0xe1
push esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, eax
jne 0x1006f1b
mov dword [0x1018e4c], 2
lea eax, [ebp - 0x2c]
push eax
push 0x14
push 0xd
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [ebp - 0x2c], di
je 0x1007082
lea ebx, [ebp - 0x2c]
mov ax, word [ebx]
cmp ax, 0x20
je 0x1006f4e
cmp ax, 9
jne 0x1006f52
inc ebx
inc ebx
jmp 0x1006f3f
xor edx, edx
cmp word [ebx], dx
je 0x1006f77
mov eax, ebx
inc eax
inc eax
cmp word [eax], dx
jne 0x1006f5b
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x20
je 0x1006f62
cmp cx, 9
je 0x1006f62
mov word [eax + 2], dx
cmp dword [0x1018e4c], 3
jne 0x1007004
cmp word [ebx], dx
mov esi, ebx
je 0x1006fc0
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
je 0x1006fc0
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1007082
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1007082
inc esi
inc esi
cmp word [esi], ax
jne 0x1006f8b
push ebx
call fcn.01014822
mov dword [ebp - 0x38], eax
mov eax, dword [0x1019f74]
cmp dword [ebp - 0x38], eax
jl 0x1007082
mov ecx, dword [0x1019f70]
add ecx, eax
cmp dword [ebp - 0x38], ecx
jae 0x1007082
cmp word [esi], 0x20
mov ebx, esi
jne 0x1006ff8
inc ebx
inc ebx
cmp word [ebx], 0x20
je 0x1006ff0
cmp word [ebx], 0
je 0x100715e
xor edx, edx
cmp word [ebx], dx
mov esi, ebx
je 0x1007048
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x100702b
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x1007040
mov ax, word [esi]
cmp ax, word [0x1017a80]
je 0x1007040
cmp ax, word [0x1017a84]
jne 0x1007082
inc esi
inc esi
cmp word [esi], 0
jne 0x100700b
xor eax, eax
mov ax, word [0x1017a80]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
je 0x10070e4
cmp word [eax], 0
je 0x10070e4
xor eax, eax
mov ax, word [0x1017a80]
push eax
push ebx
call edi
mov esi, eax
cmp dword [ebp - 0x30], esi
pop ecx
pop ecx
je 0x1007092
mov eax, dword [ebp - 0x48]
mov dword [0x1018e4c], eax
or eax, 0xffffffff
jmp 0x10071c5
inc esi
inc esi
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10070a6
and word [esi + 6], 0
push esi
call fcn.01014822
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
jne 0x10070c5
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x64
mov dword [ebp - 0x34], eax
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 2
pop ecx
jne 0x10070dd
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
and word [eax], 0
xor eax, eax
mov ax, word [0x1017a84]
push eax
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1007152
cmp word [esi], 0
lea eax, [esi + 2]
jne 0x1007103
mov eax, ebx
push eax
call fcn.01014822
cmp word [esi], 0
mov dword [ebp - 0x30], eax
je 0x100715b
and word [esi], 0
xor eax, eax
mov ax, word [0x1017a84]
push eax
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1007130
cmp word [esi], 0
jne 0x1007139
push ebx
call fcn.01014822
mov dword [ebp - 0x40], eax
test esi, esi
je 0x100715b
cmp word [esi], 0
je 0x100715b
and word [esi], 0
push ebx
call fcn.01014822
mov dword [ebp - 0x3c], eax
jmp 0x100715b
push ebx
call fcn.01014822
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x3c]
imul edi, edi, 0x3c
add edi, dword [ebp - 0x40]
imul edi, edi, 0x3c
add edi, dword [ebp - 0x30]
imul edi, edi, 0x3e8
add edi, dword [ebp - 0x34]
cmp dword [0x1018e4c], 3
mov eax, edi
jne 0x100718b
mov ecx, dword [0x1019f6c]
mov edx, dword [ebp - 0x38]
add eax, dword [ecx + edx*4 - 4]
push eax
lea eax, [ebp - 0x2c]
push 0x1001828
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
mov eax, dword [ebp - 0x48]
add esp, 0x10
test eax, eax
je 0x10071b6
mov dword [0x1018e4c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010148e5
leave
ret 0xc