Function at 0x40ee70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4223b0]
push ebx
mov dword [esp + 0x154], eax
push esi
push edi
xor eax, eax
mov byte [esp + 0x58], 0
mov ecx, 0x3f
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
ja 0x40ef44
je 0x40ef1c
sub eax, 2
je 0x40ef00
sub eax, 0xa
jne 0x40f0fe
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push 0xc
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [0x442158]
push 0x100
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040f3ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040e600
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040f3ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
mov dword [0x442158], edx
call fcn.0040ee10
mov eax, 1
mov ecx, dword [esp + 0x15c]
call fcn.0040f3ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x111
jne 0x40f0fe
mov eax, dword [0x4421f4]
test eax, eax
je 0x40f0fe
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040e140
add esp, 4
test eax, eax
je 0x40f0f4
mov esi, dword [ebp + 0x10]
mov eax, dword [0x442154]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, si
cmp eax, ecx
je 0x40efad
mov eax, ecx
mov ecx, esi
shr ecx, 0x10
cmp cx, 0x100
mov dword [0x442154], eax
jne 0x40efad
mov ebx, dword [ebp + 8]
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x442154]
jmp 0x40efb0
mov ebx, dword [ebp + 8]
shr esi, 0x10
cmp esi, 0x300
jne 0x40f0fe
mov ecx, dword [0x4421e0]
test ecx, ecx
je 0x40f0fe
push eax
push ebx
call edi
mov edx, eax
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
call fcn.0040e1e0
add esp, 4
test eax, eax
je 0x40f00c
mov ecx, 0x20
xor eax, eax
mov edi, 0x442160
rep stosd dword es:[edi], eax
jmp 0x40f0c9
mov eax, dword [0x442154]
push 0x40
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov ecx, dword [0x442154]
push ecx
call fcn.0040e630
mov edi, eax
lea eax, [esp + 0x1c]
add esp, 4
mov dword [esp + 0xc], edi
xor edx, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f040
sub eax, esi
mov dword [esp + 0x14], eax
je 0x40f070
mov bl, 0x2a
cmp byte [esp + edx + 0x18], bl
jne 0x40f06d
lea eax, [esp + 0x18]
inc edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f060
sub eax, esi
cmp edx, eax
jb 0x40f051
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x18]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f077
mov ecx, dword [edi + 0x1c]
sub eax, esi
cmp eax, ecx
jne 0x40f08b
cmp edx, ecx
jae 0x40f0c9
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x1c]
mov edx, ecx
shr ecx, 2
mov eax, 0x2a2a2a2a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x442154]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [esp + 0x10]
push 0x28
push 0x28
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040f3ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x442154], 0
mov ecx, dword [esp + 0x15c]
xor eax, eax
call fcn.0040f3ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10