Function at 0x1006984
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1016f34]
push ebx
push esi
cmp eax, 1
push edi
mov dword [ebp - 0x14], eax
jne 0x1006a3b
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1006bc6
mov ax, word [edi]
cmp ax, 0x20
je 0x10069cf
cmp ax, 9
jne 0x10069d3
inc edi
inc edi
jmp 0x10069c0
cmp word [edi], bx
je 0x10069f6
mov eax, edi
inc eax
inc eax
cmp word [eax], bx
jne 0x10069da
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x20
je 0x10069e1
cmp cx, 9
je 0x10069e1
mov word [eax + 2], bx
cmp word [edi], 0
mov esi, edi
je 0x1006a2a
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bc6
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1006bc6
inc esi
inc esi
inc ebx
cmp word [esi], ax
jne 0x10069fe
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
jmp 0x1006d06
push 0xe1
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], eax
push 2
pop esi
jne 0x1006a6f
mov dword [0x1016f34], esi
lea eax, [ebp - 0x3c]
push eax
push 0x14
push 0xd
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [ebp - 0x3c], di
je 0x1006bc6
lea ebx, [ebp - 0x3c]
mov ax, word [ebx]
cmp ax, 0x20
je 0x1006aa4
cmp ax, 9
jne 0x1006aa8
add ebx, esi
jmp 0x1006a95
cmp word [ebx], di
je 0x1006acb
mov eax, ebx
add eax, esi
cmp word [eax], di
jne 0x1006aaf
sub eax, esi
mov cx, word [eax]
cmp cx, 0x20
je 0x1006ab6
cmp cx, 9
je 0x1006ab6
mov word [eax + 2], di
cmp dword [0x1016f34], 3
jne 0x1006b4f
cmp word [ebx], 0
mov esi, ebx
je 0x1006b0d
mov ax, word [esi]
cmp ax, 0x20
je 0x1006b0d
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bc6
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1006bc6
inc esi
inc esi
cmp word [esi], ax
jne 0x1006adc
push ebx
call fcn.010132f9
mov dword [ebp - 8], eax
mov eax, dword [0x1018044]
cmp dword [ebp - 8], eax
jl 0x1006bc6
mov ecx, dword [0x101802c]
add eax, ecx
cmp dword [ebp - 8], eax
jae 0x1006bc6
cmp word [esi], 0x20
mov ebx, esi
jne 0x1006b45
inc ebx
inc ebx
cmp word [ebx], 0x20
je 0x1006b3d
cmp word [ebx], 0
je 0x1006c9e
cmp word [ebx], 0
mov esi, ebx
je 0x1006b90
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006b73
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
je 0x1006b88
mov ax, word [esi]
cmp ax, word [0x1015acc]
je 0x1006b88
cmp ax, word [0x1015ad0]
jne 0x1006bc6
inc esi
inc esi
cmp word [esi], 0
jne 0x1006b57
mov ax, word [0x1015acc]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcschr]
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
test eax, eax
pop ecx
mov dword [ebp + 8], eax
je 0x1006c28
cmp word [eax], 0
je 0x1006c28
mov ax, word [0x1015acc]
push eax
push ebx
call edi
mov esi, eax
pop ecx
cmp dword [ebp + 8], esi
pop ecx
je 0x1006bd6
mov eax, dword [ebp - 0x14]
mov dword [0x1016f34], eax
or eax, 0xffffffff
jmp 0x1006d06
inc esi
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x1006bea
and word [esi + 6], 0
push esi
call fcn.010132f9
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 1
pop ecx
jne 0x1006c09
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x64
mov dword [ebp + 0xc], eax
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 2
pop ecx
jne 0x1006c21
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
and word [eax], 0
mov ax, word [0x1015ad0]
push eax
push ebx
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x1006c92
cmp word [esi], 0
lea eax, [esi + 2]
jne 0x1006c45
mov eax, ebx
push eax
call fcn.010132f9
cmp word [esi], 0
mov dword [ebp - 0x10], eax
je 0x1006c9b
and word [esi], 0
mov ax, word [0x1015ad0]
push eax
push ebx
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x1006c70
cmp word [esi], 0
jne 0x1006c79
push ebx
call fcn.010132f9
mov dword [ebp - 0xc], eax
test esi, esi
je 0x1006c9b
cmp word [esi], 0
je 0x1006c9b
and word [esi], 0
push ebx
call fcn.010132f9
mov dword [ebp - 4], eax
jmp 0x1006c9b
push ebx
call fcn.010132f9
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
imul edi, edi, 0x3c
add edi, dword [ebp - 0xc]
imul edi, edi, 0x3c
add edi, dword [ebp - 0x10]
imul edi, edi, 0x3e8
add edi, dword [ebp + 0xc]
cmp dword [0x1016f34], 3
mov eax, edi
jne 0x1006ccb
mov ecx, dword [0x1018030]
mov edx, dword [ebp - 8]
add eax, dword [ecx + edx*4 - 4]
push eax
lea eax, [ebp - 0x3c]
push 0x100186c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
pop ecx
je 0x1006cf7
mov dword [0x1016f34], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc